[LLVMbugs] [Bug 13451] New: clang-check doesn't find file
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jul 24 22:01:03 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13451
Bug #: 13451
Summary: clang-check doesn't find file
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I tried playing with the compilation db format again.
http://clang.llvm.org/docs/JSONCompilationDatabase.html says "file" should be
relative to "directory", yet clang-check seems to not process this correctly
(or my json file is wrong, but as far as I can tell it's not):
Nicos-MacBook-Pro:src thakis$ cat test.json
[
{ "directory": "/Users/thakis/src/chrome/src/out/Release",
"command": "../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD
-MF obj/base/base.file_path.o.d -DCHROMIUM_BUILD -DCOMPONENT_BUILD
-DENABLE_ONE_CLICK_SIGNIN -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1
-DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS
-DENABLE_HIDPI=1 -DDCHECK_ALWAYS_ON=1 -DENABLE_GPU=1 -DENABLE_EGLIMAGE=1
-DUSE_SKIA=1 -DENABLE_TASK_MANAGER=1 -DENABLE_WEB_INTENTS=1
-DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1
-DENABLE_PROTECTOR_SERVICE=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1
-DENABLE_BACKGROUND=1 -DENABLE_AUTOMATION=1 -DENABLE_PRINTING=1
-DENABLE_CAPTIVE_PORTAL_DETECTION=1 -D__STDC_FORMAT_MACROS
-DBASE_IMPLEMENTATION -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0
-I../.. -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
-O3 -gdwarf-2 -fvisibility=hidden -Werror -Wnewline-eof
-mmacosx-version-min=10.5 -arch i386 -Wall -Wendif-labels -Wextra
-Wno-unused-parameter -Wno-missing-field-initializers -Wheader-hygiene
-Wno-char-subscripts -Wno-unused-function -Wno-unnamed-type-template-args
-Wno-c++11-extensions -Wno-covered-switch-default -Wexit-time-destructors
-fno-rtti -fno-exceptions -fvisibility-inlines-hidden -fno-threadsafe-statics
-fno-strict-aliasing -Xclang -load -Xclang
/Users/thakis/src/chrome/src/tools/clang/scripts/../../../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib
-Xclang -add-plugin -Xclang find-bad-constructs -Xclang
-plugin-arg-find-bad-constructs -Xclang skip-virtuals-in-implementations
-fcolor-diagnostics -c ../../base/file_path.cc -o obj/base/base.file_path.o",
"file": "../../base/file_path.cc" },
]
Nicos-MacBook-Pro:src thakis$ pwd
/Users/thakis/src/chrome/src
Nicos-MacBook-Pro:src thakis$ ~/src/llvm/Release+Asserts/bin/clang-check -p
test.json base/file_path.cc
Skipping /Users/thakis/src/chrome/src/base/file_path.cc. Command line not
found.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list