sammccall added a comment.
Will try to add a test.
================
Comment at: clangd/GlobalCompilationDatabase.cpp:24
+ // Parsing as Objective C++ is friendly to more cases.
+ if (llvm::sys::path::extension(File) == ".h")
+ Argv.push_back("-xobjective-c++-header");
----------------
ilya-biryukov wrote:
> Maybe use `.equals_lower(".h")` instead? Just in case.
.H is (unambiguously) c++, and will be treated as such by clang.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45442
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits