diff options
author | Sam McCall <sam.mccall@gmail.com> | 2020-08-12 00:06:52 +0200 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2020-08-13 09:43:27 +0200 |
commit | c286d6fdeeb2b103777d3ae8c9de84937cb51efe (patch) | |
tree | a73b1870f357ff4ab8c0aa7c8b6b523801bf23bc /clang/unittests/Tooling/Syntax/TreeTest.cpp | |
parent | eaa341fbea961894759355256d25d785509002ef (diff) | |
download | llvm-c286d6fdeeb2b103777d3ae8c9de84937cb51efe.zip llvm-c286d6fdeeb2b103777d3ae8c9de84937cb51efe.tar.gz llvm-c286d6fdeeb2b103777d3ae8c9de84937cb51efe.tar.bz2 |
[Parser] Suppress -Wempty-translation-unit if this is a header file
This is motivated by tooling (clangd, libclang etc) - headers without
declarations are legitimate even if they're not valid TUs.
The other use -x c-header cases (PCH/modules) are nonstandard anyway and this
warning doesn't seem necessary there either.
Differential Revision: https://reviews.llvm.org/D85789
Diffstat (limited to 'clang/unittests/Tooling/Syntax/TreeTest.cpp')
0 files changed, 0 insertions, 0 deletions