#include "Annotations.h"
#include "Config.h"
#include "Protocol.h"
#include "SemanticHighlighting.h"
#include "SourceCode.h"
#include "TestTU.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/raw_ostream.h"
#include "gmock/gmock.h"
#include <algorithm>
namespace clang {
namespace clangd {
namespace {
IsEmpty;
SizeIs;
std::string annotate(llvm::StringRef Input,
llvm::ArrayRef<HighlightingToken> Tokens) { … }
void checkHighlightings(llvm::StringRef Code,
std::vector<std::pair< llvm::StringRef,
llvm::StringRef>>
AdditionalFiles = { … }
constexpr static uint32_t ScopeModifierMask = …;
TEST(SemanticHighlighting, GetsCorrectTokens) { … }
TEST(SemanticHighlighting, ScopeModifiers) { … }
std::vector<HighlightingToken> tokens(llvm::StringRef MarkedText) { … }
TEST(SemanticHighlighting, toSemanticTokens) { … }
TEST(SemanticHighlighting, diffSemanticTokens) { … }
TEST(SemanticHighlighting, MultilineTokens) { … }
TEST(SemanticHighlighting, WithHighlightingFilter) { … }
}
}
}