clang API Documentation
#include "clang/Lex/Preprocessor.h"#include "clang/Lex/LiteralSupport.h"#include "clang/Lex/HeaderSearch.h"#include "clang/Lex/MacroInfo.h"#include "clang/Lex/LexDiagnostic.h"#include "clang/Lex/CodeCompletionHandler.h"#include "clang/Lex/ModuleLoader.h"#include "clang/Lex/Pragma.h"#include "clang/Basic/FileManager.h"#include "clang/Basic/SourceManager.h"#include "llvm/ADT/APInt.h"#include "llvm/Support/ErrorHandling.h"
Go to the source code of this file.
Functions | |
| static bool | GetLineValue (Token &DigitTok, unsigned &Val, unsigned DiagID, Preprocessor &PP) |
| static bool | ReadLineMarkerFlags (bool &IsFileEntry, bool &IsFileExit, bool &IsSystemHeader, bool &IsExternCHeader, Preprocessor &PP) |
| static bool GetLineValue | ( | Token & | DigitTok, |
| unsigned & | Val, | ||
| unsigned | DiagID, | ||
| Preprocessor & | PP | ||
| ) | [static] |
GetLineValue - Convert a numeric token into an unsigned value, emitting Diagnostic DiagID if it is invalid, and returning the value in Val.
Definition at line 731 of file PPDirectives.cpp.
References clang::Preprocessor::AdvanceToTokenCharacter(), clang::Preprocessor::Diag(), clang::Preprocessor::DiscardUntilEndOfDirective(), clang::Token::getLength(), clang::Token::getLocation(), clang::Preprocessor::getSpelling(), and clang::Token::isNot().
Referenced by ReadLineMarkerFlags().
| static bool ReadLineMarkerFlags | ( | bool & | IsFileEntry, |
| bool & | IsFileExit, | ||
| bool & | IsSystemHeader, | ||
| bool & | IsExternCHeader, | ||
| Preprocessor & | PP | ||
| ) | [static] |
ReadLineMarkerFlags - Parse and validate any flags at the end of a GNU line marker directive.
Definition at line 847 of file PPDirectives.cpp.
References clang::Preprocessor::Diag(), clang::Preprocessor::DiscardUntilEndOfDirective(), clang::SourceManager::getDecomposedExpansionLoc(), clang::PresumedLoc::getIncludeLoc(), GetLineValue(), clang::Token::getLocation(), clang::SourceManager::getPresumedLoc(), clang::Preprocessor::getSourceManager(), clang::Token::is(), clang::SourceLocation::isInvalid(), clang::PresumedLoc::isInvalid(), and clang::Preprocessor::Lex().