summaryrefslogtreecommitdiff
path: root/clang/lib/Lex/PPConditionalDirectiveRecord.cpp
AgeCommit message (Collapse)Author
2021-05-27Add support for #elifdef and #elifndefAaron Ballman
WG14 adopted N2645 and WG21 EWG has accepted P2334 in principle (still subject to full EWG vote + CWG review + plenary vote), which add support for #elifdef as shorthand for #elif defined and #elifndef as shorthand for #elif !defined. This patch adds support for the new preprocessor directives.
2019-07-03Change std::{lower,upper}_bound to llvm::{lower,upper}_bound or ↵Fangrui Song
llvm::partition_point. NFC llvm-svn: 365006
2019-01-19Update the file headers across all of the LLVM projects in the monorepoChandler Carruth
to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
2015-05-04Switch PPCallbacks to take the new MacroDefinition instead of ↵Richard Smith
MacroDirective*, in order to preserve full information on module macro expansion. llvm-svn: 236404
2013-12-07Changed ConditionValue argument to PPCallbacks If and Elif callbacks to be a ↵John Thompson
3-state enum. llvm-svn: 196648
2013-07-18Add condition expression result to if and elif callbacks.John Thompson
llvm-svn: 186547
2013-02-24[preprocessor] Use MacroDirective in the preprocessor callbacks to make ↵Argyrios Kyrtzidis
available the full information about the macro (e.g if it was imported and where). llvm-svn: 175978
2012-12-08[Preprocessor] Enhance Ifdef/Ifndef/Defined preprocessor callbacks to also passArgyrios Kyrtzidis
a MacroInfo object if the identifier was a macro name. llvm-svn: 169665
2012-12-04Refactor recording the preprocessor conditional directive regions out ofArgyrios Kyrtzidis
PreprocessingRecord and into its own class, PPConditionalDirectiveRecord. Decoupling allows a client to use the functionality of PPConditionalDirectiveRecord without needing a PreprocessingRecord. llvm-svn: 169229