llvm-project/clang/lib/Parse
Joel E. Denny 91f8066d1d [OpenMP] Set pragma start loc to `#pragma` loc
This patch adjusts `PragmaOpenMPHandler` to set the location of
`tok::annot_pragma_openmp` to the `#pragma` location instead of the
`omp` location so that the former becomes the start location of the
OpenMP AST node.  This can be useful when, for example, rewriting a
directive using Clang's Rewrite facility.  Most of this patch updates
tests for changes to locations in diagnostics and `-ast-dump` output.

Reviewed By: ABataev, lebedev.ri, Meinersbur, aaron.ballman

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

llvm-svn: 361867
2019-05-28 19:27:19 +00:00
..
CMakeLists.txt
ParseAST.cpp Adds `-ftime-trace` option to clang that produces Chrome `chrome://tracing` compatible JSON profiling output dumps. 2019-03-30 08:42:48 +00:00
ParseCXXInlineMethods.cpp [Lex] Allow to consume tokens while preprocessing 2019-05-17 09:32:05 +00:00
ParseDecl.cpp [OpenCL] Support pipe keyword in C++ mode 2019-05-22 13:12:20 +00:00
ParseDeclCXX.cpp [Lex] Allow to consume tokens while preprocessing 2019-05-17 09:32:05 +00:00
ParseExpr.cpp [Lex] Allow to consume tokens while preprocessing 2019-05-17 09:32:05 +00:00
ParseExprCXX.cpp [CodeComplete] Set preferred type for qualified-id 2019-05-28 15:21:03 +00:00
ParseInit.cpp Rearrange and clean up how we disambiguate lambda-introducers from ObjC 2019-05-20 18:01:54 +00:00
ParseObjc.cpp [Lex] Allow to consume tokens while preprocessing 2019-05-17 09:32:05 +00:00
ParseOpenMP.cpp [Lex] Allow to consume tokens while preprocessing 2019-05-17 09:32:05 +00:00
ParsePragma.cpp [OpenMP] Set pragma start loc to `#pragma` loc 2019-05-28 19:27:19 +00:00
ParseStmt.cpp [Sema][NFCI] Don't allocate storage for the various CorrectionCandidateCallback unless we are going to do some typo correction 2019-03-25 17:08:51 +00:00
ParseStmtAsm.cpp [Lex] Allow to consume tokens while preprocessing 2019-05-17 09:32:05 +00:00
ParseTemplate.cpp [Lex] Allow to consume tokens while preprocessing 2019-05-17 09:32:05 +00:00
ParseTentative.cpp [OpenCL] Support pipe keyword in C++ mode 2019-05-22 13:12:20 +00:00
Parser.cpp [Lex] Allow to consume tokens while preprocessing 2019-05-17 09:32:05 +00:00