clang API Documentation
#include "clang/Lex/TokenConcatenation.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/Support/ErrorHandling.h"
Go to the source code of this file.
Functions | |
static bool | IsStringPrefix (StringRef Str, bool CPlusPlus11) |
static char | GetFirstChar (Preprocessor &PP, const Token &Tok) |
static char GetFirstChar | ( | Preprocessor & | PP, |
const Token & | Tok | ||
) | [static] |
GetFirstChar - Get the first character of the token
Definition at line 125 of file TokenConcatenation.cpp.
References clang::SourceManager::getCharacterData(), clang::Token::getIdentifierInfo(), clang::Token::getLength(), clang::Token::getLiteralData(), clang::Token::getLocation(), clang::Preprocessor::getSourceManager(), clang::Preprocessor::getSpelling(), clang::SourceManager::getSpellingLoc(), clang::Token::isLiteral(), and clang::Token::needsCleaning().
Referenced by clang::TokenConcatenation::AvoidConcat().
static bool IsStringPrefix | ( | StringRef | Str, |
bool | CPlusPlus11 | ||
) | [static] |
IsStringPrefix - Return true if Str is a string prefix. 'L', 'u', 'U', or 'u8'. Including raw versions.
Definition at line 23 of file TokenConcatenation.cpp.
References clang::frontend::CPlusPlus11.