#include "clang/Basic/SourceManager.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Basic/TargetOptions.h"
#include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/HeaderSearchOptions.h"
#include "clang/Lex/ModuleLoader.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Lex/PreprocessorOptions.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Process.h"
#include "gtest/gtest.h"
#include <cstddef>
usingnamespaceclang;
namespace clang {
class SourceManagerTestHelper { … };
}
namespace {
class SourceManagerTest : public ::testing::Test { … };
TEST_F(SourceManagerTest, isInMemoryBuffersNoSourceLocationInfo) { … }
TEST_F(SourceManagerTest, isInSystemHeader) { … }
TEST_F(SourceManagerTest, isBeforeInTranslationUnit) { … }
TEST_F(SourceManagerTest, isBeforeInTranslationUnitWithTokenSplit) { … }
TEST_F(SourceManagerTest, getColumnNumber) { … }
TEST_F(SourceManagerTest, locationPrintTest) { … }
TEST_F(SourceManagerTest, getInvalidBOM) { … }
TEST_F(SourceManagerTest, getLineNumber) { … }
struct FakeExternalSLocEntrySource : ExternalSLocEntrySource { … };
TEST_F(SourceManagerTest, loadedSLocEntryIsInTheSameTranslationUnit) { … }
#if defined(LLVM_ON_UNIX)
TEST_F(SourceManagerTest, ResetsIncludeLocMap) { … }
TEST_F(SourceManagerTest, getMacroArgExpandedLocation) { … }
namespace {
struct MacroAction { … };
class MacroTracker : public PPCallbacks { … };
}
TEST_F(SourceManagerTest, isBeforeInTranslationUnitWithMacroInInclude) { … }
TEST_F(SourceManagerTest, isMainFile) { … }
#endif
}