clang API Documentation
#include "clang/Lex/Preprocessor.h"#include "clang/Basic/FileManager.h"#include "clang/Basic/FileSystemStatCache.h"#include "clang/Basic/SourceManager.h"#include "clang/Basic/TargetInfo.h"#include "clang/Lex/CodeCompletionHandler.h"#include "clang/Lex/ExternalPreprocessorSource.h"#include "clang/Lex/HeaderSearch.h"#include "clang/Lex/LexDiagnostic.h"#include "clang/Lex/LiteralSupport.h"#include "clang/Lex/MacroArgs.h"#include "clang/Lex/MacroInfo.h"#include "clang/Lex/ModuleLoader.h"#include "clang/Lex/Pragma.h"#include "clang/Lex/PreprocessingRecord.h"#include "clang/Lex/PreprocessorOptions.h"#include "clang/Lex/ScratchBuffer.h"#include "llvm/ADT/APFloat.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/SmallString.h"#include "llvm/ADT/StringExtras.h"#include "llvm/Support/Capacity.h"#include "llvm/Support/ConvertUTF.h"#include "llvm/Support/MemoryBuffer.h"#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Functions | |
| static bool | MacroDefinitionEquals (const MacroInfo *MI, ArrayRef< TokenValue > Tokens) |
| Compares macro tokens with a specified token value sequence. | |
| static bool MacroDefinitionEquals | ( | const MacroInfo * | MI, |
| ArrayRef< TokenValue > | Tokens | ||
| ) | [static] |
Compares macro tokens with a specified token value sequence.
Definition at line 311 of file Preprocessor.cpp.
References clang::MacroInfo::getNumTokens(), and clang::MacroInfo::tokens_begin().
Referenced by clang::Preprocessor::getLastMacroWithSpelling().