]> granicus.if.org Git - clang/commit
[Tooling] Correct the "-std" compile command option.
authorHaojian Wu <hokein@google.com>
Wed, 11 Apr 2018 09:18:18 +0000 (09:18 +0000)
committerHaojian Wu <hokein@google.com>
Wed, 11 Apr 2018 09:18:18 +0000 (09:18 +0000)
commit45c3242e808b48e6c017f00eb64cc0a58b52d8ad
treebbf623c3f6d6257d4b1c10a9bb39c7a13efcf231
parent1ab87cac0ca08cf21720c51adc87337561c1e0df
[Tooling] Correct the "-std" compile command option.

Summary:
"-std c++11" is not valid in compiler, we have to use "-std=c++11".

Test in vscode with this patch, code completion for header works as expected.

Reviewers: sammccall

Subscribers: cfe-commits, klimek

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

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