mirror-llvm-project/clang-tools-extra/clangd/unittests
Corentin Jabot e24eb10725
[Clang] Treat line directives as header names. (#211512)
We treated line directives as being unevaluated string literal. However
- The standard has no such restriction - or rather the standard has
different, unclear restriction (https://wg21.link/CWG2693)
- Because of Windows paths, it's common for "C:\foo\bar" to be used, and
these should not form escape sequences.

To remain consistent with other implementations, we do not allow `#line
1 <>` at this time. We do however support `#line 1 ""` to avoid a
breaking change.

Fixes a regression introduced by #201413
2026-07-29 19:04:17 +02:00
..
decision_forest_model
remote [clangd][remote] Add clangd-index-server support for cross platform indexes (#207202) 2026-07-10 17:34:56 +03:00
support [clangd] Use plaintext newline handling for escaped markdown hover style (#185197) 2026-07-02 00:04:50 +02:00
tweaks [clangd] Let DefineOutline tweak create a definition from scratch (#71950) 2026-05-19 20:16:38 +02:00
xpc
Annotations.cpp
Annotations.h
ASTSignalsTests.cpp
ASTTests.cpp [clangd] Use HeuristicResolver to try to resolve dependent 'auto' (#156283) 2025-09-16 15:21:34 -04:00
BackgroundIndexTests.cpp [clangd] Find references to constructors called indirectly via a forwarding function (#169742) 2025-12-25 00:37:39 -05:00
CallHierarchyTests.cpp [clangd] Remove redundant symbol name from hierarchy item details (#170112) 2026-05-28 16:41:38 +02:00
CanonicalIncludesTests.cpp
ClangdLSPServerTests.cpp [clangd] Fix crash when server shuts down with in-flight rename or tweak (#198019) 2026-05-20 23:23:57 +03:00
ClangdTests.cpp
CMakeLists.txt [clangd] Disable PCH reuse for ClangdTests (#201232) 2026-06-03 02:55:38 -04:00
CodeCompleteTests.cpp [clangd] Respect ArgumentLists for struct templates (#212094) 2026-07-27 03:07:00 +02:00
CodeCompletionStringsTests.cpp [clangd] Fix unknown doxygen command parsing in parameter documentation (#202121) 2026-06-25 14:21:45 +02:00
CollectMacrosTests.cpp
CompileCommandsTests.cpp [clangd][Mangler] Drop unknown compile options (#200001) 2026-06-09 16:29:57 +08:00
CompilerTests.cpp [clangd] Support suppressions for driver diagnostics (#182912) 2026-03-18 15:27:45 +03:00
ConfigCompileTests.cpp [clangd] Support suppressions for driver diagnostics (#182912) 2026-03-18 15:27:45 +03:00
ConfigProviderTests.cpp
ConfigTesting.h
ConfigYAMLTests.cpp [clangd] Add option to fuzzy-match macros in code-complete (#169880) 2025-12-14 03:29:53 -05:00
DecisionForestTests.cpp
DexTests.cpp
DiagnosticsTests.cpp [clang-tidy] Avoid token merging in redundant-parentheses fix-its (#202365) 2026-06-23 19:06:04 +08:00
DraftStoreTests.cpp
DumpASTTests.cpp [clang] Add formal linkage to textual AST dump (#194600) 2026-05-05 00:23:00 +04:00
ExpectedTypeTest.cpp
FeatureModulesRegistryTests.cpp Reland "[clangd] Add feature modules registry" (#154836) 2025-09-21 12:37:33 +03:00
FeatureModulesTests.cpp
FileDistanceTests.cpp [clang-tools-extra] Replace LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]] (NFC) (#163915) 2025-10-17 07:27:19 -07:00
FileIndexTests.cpp
FindSymbolsTests.cpp [Index] Reflect in SymbolSubKind whether a typedef points to a struct or a class (#181967) 2026-02-19 03:31:38 -05:00
FindTargetTests.cpp [clangd] Resolve __builtin_offsetof designator components precisely (#194407) 2026-04-29 07:39:19 +03:00
FormatTests.cpp
FSTests.cpp
FuzzyMatchTests.cpp [clangd][Lex][NFC] Use valid non-ASCII identifiers in tests (#197826) 2026-05-15 08:03:53 +02:00
GlobalCompilationDatabaseTests.cpp [clangd] Add a (currently hidden) --strong-workspace-mode flag (#172160) 2025-12-14 03:24:18 -05:00
HeaderSourceSwitchTests.cpp [clangd] Prefer .hpp files over .h with header source switch (#198152) 2026-05-27 13:19:20 +03:00
HeadersTests.cpp
HoverTests.cpp [clangd] Use plaintext newline handling for escaped markdown hover style (#185197) 2026-07-02 00:04:50 +02:00
IncludeCleanerTests.cpp
IndexActionTests.cpp [clangd] CodeCompletion surface param names if possible (#206716) 2026-07-10 19:07:42 +02:00
IndexTests.cpp
InlayHintTests.cpp [clangd] Handle dependent call to function with explicit object parameter in InlayHintVisitor (#201264) 2026-06-03 00:46:45 -04:00
InsertionPointTests.cpp
JSONTransportTests.cpp
lit.cfg.py [clang-tools-extra][Unittest] Fix wrong reference to CMake configuration variable (#164147) 2025-10-20 23:14:54 +03:00
lit.site.cfg.py.in
LoggerTests.cpp
LSPBinderTests.cpp
LSPClient.cpp
LSPClient.h
Matchers.h
ModulesTests.cpp
ParsedASTTests.cpp
PathMappingTests.cpp
PreambleTests.cpp [Clang] Treat line directives as header names. (#211512) 2026-07-29 19:04:17 +02:00
PrerequisiteModulesTest.cpp [clangd] highlight import and export keywords for C++20 modules (#204511) 2026-07-15 16:44:02 +03:00
PrintASTTests.cpp
ProjectAwareIndexTests.cpp
QualityTests.cpp [clang-tools-extra] Replace LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]] (NFC) (#163915) 2025-10-17 07:27:19 -07:00
RenameTests.cpp [clangd] Show callers of base functions in incomingCalls (#163024) 2025-10-21 02:27:18 +00:00
ReplayPeambleTests.cpp [clangd] Replay macro definitions from preamble for clang-tidy checks (#202495) 2026-06-17 11:00:11 +03:00
RIFFTests.cpp
SelectionTests.cpp [clangd] Avoid crash on pseudo-destructor selection (#195939) 2026-05-12 17:57:38 +03:00
SemanticHighlightingTests.cpp [clangd] Null-check AutoTypeLoc in CollectExtraHighlightings::VisitDeclaratorDecl (#207323) 2026-07-06 03:03:07 -04:00
SemanticSelectionTests.cpp [clangd] Remove the unused AST-based code folding Implementation. (#166189) 2025-12-09 13:33:48 +01:00
SerializationTests.cpp
SourceCodeTests.cpp
StdLibTests.cpp
SymbolCollectorTests.cpp [clang][TypePrinter] Unify printing of anonymous/unnamed tag types (#169445) 2026-01-06 10:57:59 +00:00
SymbolDocumentationTests.cpp [clangd] Use plaintext newline handling for escaped markdown hover style (#185197) 2026-07-02 00:04:50 +02:00
SymbolInfoTests.cpp
SyncAPI.cpp
SyncAPI.h
TestFS.cpp [clangd][test] Fix test failures when LLVM_WINDOWS_PREFER_FORWARD_SLASH is ON (#193160) 2026-04-22 10:21:21 +00:00
TestFS.h
TestIndex.cpp
TestIndex.h
TestTU.cpp [LLVM][ADT] Migrate users of make_scope_exit to CTAD (#174030) 2026-01-02 20:42:56 -08:00
TestTU.h
TestWorkspace.cpp
TestWorkspace.h
ThreadCrashReporterTests.cpp
TidyProviderTests.cpp
TUSchedulerTests.cpp [LLVM][ADT] Migrate users of make_scope_exit to CTAD (#174030) 2026-01-02 20:42:56 -08:00
TypeHierarchyTests.cpp
URITests.cpp [clangd][test] Fix test failures when LLVM_WINDOWS_PREFER_FORWARD_SLASH is ON (#193160) 2026-04-22 10:21:21 +00:00
XRefsTests.cpp [clangd] Navigate go-to-definition through forwarding wrappers to the constructor (#199480) 2026-06-26 11:26:31 +02:00