clang-tools 20.0.0git
Namespaces | Macros
FindTargetTests.cpp File Reference
#include "FindTarget.h"
#include "Selection.h"
#include "TestTU.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/Basic/SourceLocation.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Testing/Annotations/Annotations.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <initializer_list>

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::clangd
 FIXME: Skip testing on windows temporarily due to the different escaping code mode.
 

Macros

#define EXPECT_DECLS(NodeType, ...)
 

Macro Definition Documentation

◆ EXPECT_DECLS

#define EXPECT_DECLS (   NodeType,
  ... 
)
Value:
EXPECT_THAT(assertNodeAndPrintDecls(NodeType), \
::testing::UnorderedElementsAreArray( \
std::vector<PrintedDecl>({__VA_ARGS__}))) \
<< Code
std::string Code

Definition at line 98 of file FindTargetTests.cpp.

Variable Documentation

◆ AnnotatedCode

std::string AnnotatedCode

Definition at line 1278 of file FindTargetTests.cpp.

◆ Code

std::string Code
protected

Definition at line 67 of file FindTargetTests.cpp.

Referenced by clang::clangd::markup::Document::addCodeBlock(), clang::include_fixer::addDiagnosticsForContext(), clang::clangd::markup::Paragraph::appendCode(), clang::clangd::TweakTest::build(), clang::clangd::Edit::canApplyTo(), clang::tidy::modernize::UseStdNumbersCheck::check(), clang::clangd::cleanupAndFormat(), clang::include_fixer::IncludeFixerSemaSource::CorrectTypo(), clang::include_fixer::createIncludeFixerReplacements(), clang::clangd::TweakTest::decorate(), clang::clangd::ClangdServer::foldingRanges(), clang::clangd::ClangdServer::formatFile(), clang::clangd::ClangdServer::formatOnType(), clang::clangd::getEligiblePoints(), clang::clangd::getFoldingRanges(), clang::clangd::IncludeInserter::IncludeInserter(), clang::clangd::insertDecl(), clang::clangd::issueIncludeCleanerDiagnostics(), clang::clangd::lex(), clang::clangd::lspLength(), clang::include_fixer::IncludeFixerSemaSource::MaybeDiagnoseMissingCompleteType(), clang::clangd::normalizeSuppressedCode(), clang::clangd::offsetToClangLineColumn(), clang::clangd::offsetToPosition(), clang::clangd::positionToOffset(), clang::clangd::rangeTillEOL(), clang::clangd::replacementsToEdits(), clang::clangd::replacementToEdit(), clang::clangd::sourceLocationInMainFile(), clang::clangd::sourceLocToPosition(), clang::clangd::toLSPRange(), clang::clangd::toSemanticTokens(), clang::clangd::SpelledWord::touching(), clang::clangd::visibleNamespaces(), and clang::clangd::writeCodeToFixMessage().

◆ DumpedReferences

std::string DumpedReferences

Definition at line 1279 of file FindTargetTests.cpp.

◆ Flags

std::vector<std::string> Flags
protected

Definition at line 68 of file FindTargetTests.cpp.

◆ Name

std::string Name

Definition at line 48 of file FindTargetTests.cpp.

◆ Relations

DeclRelationSet Relations

Definition at line 49 of file FindTargetTests.cpp.