aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2021-02-08 09:36:28 +0100
committerJan Svoboda <jan_svoboda@apple.com>2021-02-08 09:42:44 +0100
commitc1b482e726a943862ec5277a44c1994acfb7f97f (patch)
treea531d59591f701bb2ebaa1962d29dff430214d14 /clang/lib/Frontend/CompilerInvocation.cpp
parent1b435eb8f3b71d11976c04bb6b99d6502aed2aab (diff)
downloadllvm-c1b482e726a943862ec5277a44c1994acfb7f97f.zip
llvm-c1b482e726a943862ec5277a44c1994acfb7f97f.tar.gz
llvm-c1b482e726a943862ec5277a44c1994acfb7f97f.tar.bz2
[clang][index] Mark file as C++ in parse-all-comments test
`CompilerInvocation::CreateFromArgs` doesn't always report command line parsing failures through the return value. Sometimes, errors are only reported via diagnostics. Some clients like `c-index-test` only check the return value and don't check the state of `DiagnosticsEngine`. If we were to start returning the correct return value from `CreateFromArgs`, this index test starts to fail, because it specifies `-std=c++11` for a C input, which is invalid. This patch fixes that issue by adding forgotten `-x c++` argument. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D95879
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions