This repository has been archived by the owner on Mar 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
'ioStream' file not found #25
Labels
help wanted
Extra attention is needed
Comments
DeadRabbits307
changed the title
Error: Clang-Tidy: Lint File resulted in an error (Cannot read property 'toString' of undefined
'ioStream' file not found
May 3, 2020
I can't reproduce this with gcc installed through scoop. I'm having internet issues at the moment, so I can't test further for another few days. Sorry for the wait. |
Closed
I am also hitting this. I am using the "clang-tidy.buildPath": "${workspaceFolder}/build",
"clang-tidy.checks": [
"readability-*",
"readability-braces-around-statements",
"modernize-*",
"performance-*",
"-modernize-use-trailing-return-type",
"-readability-uppercase-literal-suffix"
], Ubuntu 20.04
|
@jackgerrits |
Have the same issue on Manjaro with default setup LLVM 10.0.0 |
adding this in "clang-tidy.compilerArgsBefore": [
"-stdlib=libc++",
"-isystem",
"/opt/homebrew/opt/llvm/include/c++/v1"
] |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As the screenshots show clang-tidy does not find the MinGW header file iostream.
VS Code version: 1.44.2
OS: Windows 10, version 1903, build 18362.720
clang-tidy extension version: 0.4.1
clang/LLVM:
version: 10.0
InstalledDir: C:\LLVM\bin
MinGW:
version: x86_64-8.1.0-posix-seh-rt_v6-rev0
InstalledDir: C:\MinGW\mingw64
settings.json:
As the PATH variable shows, according to this everything is set:
If I execute the same command vscode-clang-tidy is executing (shown in the OUTPUT window) in the cmd of Windows, no iostream error is shown:
C:\LLVM\bin\clang-tidy c:\Users\xx\Desktop\test\main.cpp --export-fixes=- --checks=cppcoreguidelines-*,clang-analyzer-*,clang-diagnostic-* --extra-arg=--target=x86_64-pc-windows-gnu
The text was updated successfully, but these errors were encountered: