#include "clang/Lex/Lexer.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Basic/TargetOptions.h"
#include "clang/Basic/TokenKinds.h"
#include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/HeaderSearchOptions.h"
#include "clang/Lex/LiteralSupport.h"
#include "clang/Lex/MacroArgs.h"
#include "clang/Lex/MacroInfo.h"
#include "clang/Lex/ModuleLoader.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Lex/PreprocessorOptions.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Testing/Annotations/Annotations.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <memory>
#include <string>
#include <vector>
namespace {
usingnamespaceclang;
ElementsAre;
class LexerTest : public ::testing::Test { … };
TEST_F(LexerTest, GetSourceTextExpandsToMaximumInMacroArgument) { … }
TEST_F(LexerTest, GetSourceTextExpandsToMaximumInMacroArgumentForEndOfMacro) { … }
TEST_F(LexerTest, GetSourceTextExpandsInMacroArgumentForBeginOfMacro) { … }
TEST_F(LexerTest, GetSourceTextExpandsInMacroArgumentForEndOfMacro) { … }
TEST_F(LexerTest, GetSourceTextInSeparateFnMacros) { … }
TEST_F(LexerTest, GetSourceTextWorksAcrossTokenPastes) { … }
TEST_F(LexerTest, GetSourceTextExpandsAcrossMultipleMacroCalls) { … }
TEST_F(LexerTest, GetSourceTextInMiddleOfMacroArgument) { … }
TEST_F(LexerTest, GetSourceTextExpandsAroundDifferentMacroCalls) { … }
TEST_F(LexerTest, GetSourceTextOnlyExpandsIfFirstTokenInMacro) { … }
TEST_F(LexerTest, GetSourceTextExpandsRecursively) { … }
TEST_F(LexerTest, LexAPI) { … }
TEST_F(LexerTest, HandlesSplitTokens) { … }
TEST_F(LexerTest, DontMergeMacroArgsFromDifferentMacroFiles) { … }
TEST_F(LexerTest, DontOverallocateStringifyArgs) { … }
TEST_F(LexerTest, IsNewLineEscapedValid) { … }
TEST_F(LexerTest, GetBeginningOfTokenWithEscapedNewLine) { … }
TEST_F(LexerTest, AvoidPastEndOfStringDereference) { … }
TEST_F(LexerTest, StringizingRasString) { … }
TEST_F(LexerTest, CharRangeOffByOne) { … }
TEST_F(LexerTest, FindNextToken) { … }
TEST_F(LexerTest, CreatedFIDCountForPredefinedBuffer) { … }
TEST_F(LexerTest, RawAndNormalLexSameForLineComments) { … }
TEST(LexerPreambleTest, PreambleBounds) { … }
}