llvm-project/clang/lib/Parse
Sam McCall c286d6fdee [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
2020-08-13 09:43:27 +02:00
..
CMakeLists.txt [openmp] Base of tablegen generated OpenMP common declaration 2020-06-23 10:32:32 -04:00
ParseAST.cpp [Support] Add TimeTraceScope constructor without detail arg 2019-12-11 14:32:21 +00:00
ParseCXXInlineMethods.cpp DR458: Search template parameter scopes in the right order. 2020-06-23 17:14:33 -07:00
ParseDecl.cpp Don't form a 'context-independent expr' reference to a member during 2020-07-27 19:38:22 -07:00
ParseDeclCXX.cpp [CodeComplete] Add code completion after function equals 2020-07-01 12:51:25 +08:00
ParseExpr.cpp PR30738: Implement two-phase name lookup for fold-expressions. 2020-08-06 16:56:39 -07:00
ParseExprCXX.cpp [clang] Provide a more specific diagnostic for a misplaced lambda capture-default. 2020-07-18 20:35:16 +01:00
ParseInit.cpp [clang][CodeComplete] Support for designated initializers 2020-01-28 16:34:15 +01:00
ParseObjc.cpp [NFC] Refactoring PropertyAttributeKind for ObjCPropertyDecl and ObjCDeclSpec. 2020-04-23 17:21:25 -04:00
ParseOpenMP.cpp [OPENMP]Redesign of OMPExecutableDirective/OMPDeclarativeDirective representation. 2020-08-06 12:25:19 -04:00
ParsePragma.cpp Reland D81869 "Modify FPFeatures to use delta not absolute settings" 2020-06-27 01:34:57 -07:00
ParseStmt.cpp [AST] add parenthesis locations for IfStmt and SwitchStmt 2020-08-10 19:19:51 -07:00
ParseStmtAsm.cpp Fix some typos (unkown -> unknown); NFC 2020-07-02 06:41:05 -04:00
ParseTemplate.cpp DR458: Search template parameter scopes in the right order. 2020-06-23 17:14:33 -07:00
ParseTentative.cpp Don't form a 'context-independent expr' reference to a member during 2020-07-27 19:38:22 -07:00
Parser.cpp [Parser] Suppress -Wempty-translation-unit if this is a header file 2020-08-13 09:43:27 +02:00