#include "clang/Analysis/MacroExpansionContext.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ASTContext.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/FileManager.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Basic/TargetOptions.h"
#include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/HeaderSearchOptions.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Lex/PreprocessorOptions.h"
#include "clang/Parse/Parser.h"
#include "llvm/ADT/SmallString.h"
#include "gtest/gtest.h"
namespace clang {
namespace analysis {
namespace {
class MacroExpansionContextTest : public ::testing::Test { … };
TEST_F(MacroExpansionContextTest, IgnoresPragmas) { … }
TEST_F(MacroExpansionContextTest, NoneForNonExpansionLocations) { … }
TEST_F(MacroExpansionContextTest, EmptyExpansions) { … }
TEST_F(MacroExpansionContextTest, TransitiveExpansions) { … }
TEST_F(MacroExpansionContextTest, MacroFunctions) { … }
TEST_F(MacroExpansionContextTest, VariadicMacros) { … }
TEST_F(MacroExpansionContextTest, ConcatenationMacros) { … }
TEST_F(MacroExpansionContextTest, StringizingMacros) { … }
TEST_F(MacroExpansionContextTest, StringizingVariadicMacros) { … }
TEST_F(MacroExpansionContextTest, RedefUndef) { … }
TEST_F(MacroExpansionContextTest, UnbalacedParenthesis) { … }
}
}
}