]> granicus.if.org Git - clang/commit
[Tooling] Add -x flags when inferring compile commands for files with no/invalid...
authorSam McCall <sam.mccall@gmail.com>
Tue, 7 May 2019 14:34:06 +0000 (14:34 +0000)
committerSam McCall <sam.mccall@gmail.com>
Tue, 7 May 2019 14:34:06 +0000 (14:34 +0000)
commit865e584f54b58c624ba6133153799ecb98f3ae4e
tree6638a30eb07d9e91ba70b7672a533c3ac2ad8cb9
parent96177dc49e3cc8d175f80b0469e6b09837858a97
[Tooling] Add -x flags when inferring compile commands for files with no/invalid extension.

Summary: We treat them as headers, as the motivating case is C++ standard library.

Reviewers: kadircet

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D61633

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360153 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Tooling/InterpolatingCompilationDatabase.cpp
unittests/Tooling/CompilationDatabaseTest.cpp