llvm-project/clang/lib
Haojian Wu 70560ba8db [Preamble] Empty preamble is not an error.
Summary:
Empty preamble is valid for source file which doesn't have any
preprocessor and #includes.

This patch makes clang treat an empty preamble as a normal preamble.

Check: ninja check-clang

A testcase is added in https://reviews.llvm.org/D50627.

Reviewers: ilya-biryukov

Subscribers: cfe-commits

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

llvm-svn: 340029
2018-08-17 14:25:10 +00:00
..
ARCMigrate Add a newline to SourceLocation dump output 2018-08-15 20:32:06 +00:00
AST [AST] Store the OwnedTagDecl as a trailing object in ElaboratedType. 2018-08-16 10:48:16 +00:00
ASTMatchers [ASTMatchers] Add matchers unresolvedMemberExpr, cxxDependentScopeMemberExpr 2018-08-12 17:34:36 +00:00
Analysis Add a newline to SourceLocation dump output 2018-08-15 20:32:06 +00:00
Basic AMDGPU: Correct errors in device table 2018-08-16 20:19:47 +00:00
CodeGen [AArch64] - return address signing 2018-08-17 12:55:05 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver Fix for bug 38508 - Don't do PCH processing when only generating preprocessor output 2018-08-17 13:43:39 +00:00
Edit Port getLocEnd -> getEndLoc 2018-08-09 21:09:38 +00:00
Format clang-format: Change Google style wrt. the formatting of empty messages. 2018-08-15 19:07:55 +00:00
Frontend [Preamble] Empty preamble is not an error. 2018-08-17 14:25:10 +00:00
FrontendTool Remove trailing space 2018-07-30 19:24:48 +00:00
Headers [X86] Remove masking from the 512-bit paddus/psubus builtins. Use a select builtin instead. 2018-08-16 07:28:06 +00:00
Index Port getLocEnd -> getEndLoc 2018-08-09 21:09:38 +00:00
Lex Add a newline to SourceLocation dump output 2018-08-15 20:32:06 +00:00
Parse We have in place support for parsing #pragma FENV_ACCESS, but that 2018-08-14 17:06:56 +00:00
Rewrite Remove trailing space 2018-07-30 19:24:48 +00:00
Sema [OPENMP] Fix processing of declare target construct. 2018-08-14 18:31:20 +00:00
Serialization [OPENMP] FIx processing of declare target variables. 2018-08-15 19:45:12 +00:00
StaticAnalyzer [CStringSyntaxChecker] Reduces space around error message for strlcat. 2018-08-15 20:09:52 +00:00
Tooling Port getLocEnd -> getEndLoc 2018-08-09 21:09:38 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00