Fangrui Song
d31cc9f076
Adapt llvm 22 changes
...
Type::Elaborated is removed by llvmorg-22-init-3166-g91cdd35008e9
llvm::sys::fs and clang functions are changed due to
https://discourse.llvm.org/t/rfc-file-system-sandboxing-in-clang-llvm/88791
2025-11-29 21:53:40 -08:00
Stephen Senran Zhang
4427527ed8
Accommodate changes of LLVM 21 & 22 to fix builds ( #985 )
2025-08-07 00:54:25 +08:00
Fangrui Song
44fb405d00
Adapt llvmorg-21 changes: clang::CompilerInstance and llvm::PointerUnion
2025-05-11 23:01:55 -07:00
Ka Ho Ng
48f1a006b7
Reformat all the files after 192a82b ( #979 )
...
Since the introduction of "ColumnLimit: 120" in .clang-format, the
column limit has become 120 characters instead of 80 characters.
This prevents clang-format from generating too much changes even if just
a small portion of a source file or header file is modified.
2024-12-06 17:58:19 -08:00
Fangrui Song
4331c89586
Adapt llvmorg-20-init-12964-gdf9a14d7bbf1: createDiagnostics
2024-11-23 18:33:49 -08:00
Fangrui Song
50fd8d069e
Drop support for LLVM 7, 8, and 9
2024-11-01 23:50:25 -07:00
Fangrui Song
88e382f8a3
Adapt llvmorg-19-init-1720-gda95d926f6fc: InclusionDirective
2024-05-05 17:44:13 -07:00
Fangrui Song
f8d2778b65
Adapt llvm/llvm-project#74910 : FileEntry::getName
...
Based on a patch by @zsrkmyn
2024-02-02 00:05:55 -08:00
Fangrui Song
7b17426b9f
Adapt llvmorg-18-init-4877-g62e576b454e1: getLangOpts
2023-09-09 19:43:27 -07:00
Fangrui Song
ba38e13b93
Adapt llvmorg-17-init-4072-gcc929590ad30: PrecompiledPreamble::Build
2023-04-11 11:04:01 -07:00
Fangrui Song
6dc564f2a8
Adapt llvm::Optional deprecation
2023-01-09 16:03:16 -08:00
Fangrui Song
74458915b3
Adapt llvmorg-15-init-7692-gd79ad2f1dbc2: PPCallbacks::InclusionDirective parameter
2022-04-16 22:29:03 -07:00
Fangrui Song
5a48e6c419
sema_manager: only keep latest session.maxNum sessions in case of a surge of textDocument/didChange
2021-09-23 14:41:51 -07:00
Fangrui Song
80d06eb476
sema_manager: Use llvm::CrashRecoveryContext
2021-05-18 21:01:50 -07:00
Fangrui Song
4cd308d7fd
Adapt llvmorg-12-init-17739-gf4d02fbe418d: change CanReuse
2021-01-28 00:18:27 -08:00
Fangrui Song
a2d2fd8167
diagnosticMain: Rebuild preamble for bounds change
2020-12-26 12:31:41 -08:00
Fangrui Song
feb153a843
Adapt llvmorg-12-init-11522-g4c55c3b66de: change ComputePreambleBounds
2020-11-18 22:33:04 -08:00
Fangrui Song
de800ebb70
sema_manager: report diagnostics in macro expansions
...
Fix #608
2020-04-19 11:27:57 -07:00
Fangrui Song
5935db10fd
Fix some clang-tidy warnings
...
Incorporated some fixes by Daniel Chabrowski (#467 )
2019-10-10 19:24:44 -07:00
Fangrui Song
b3d694b8bd
indexer: disable warnings and skip processed function bodies
...
Adapt clang rC370337: removal of createIndexingAction and WrappingIndexAction
2019-08-21 18:59:41 -07:00
Fangrui Song
6717986541
Adapt llvmorg-11-init-1314-g777180a32b6: StringRef's conversion to std::string is now explicit
...
For compatibility with LLVM 7, the call sites have to be a bit verbose.
2020-01-29 00:29:06 -08:00
Fangrui Song
61a1071634
💥 Rename FunctionName -> functionName, VarName -> var_name
2019-08-22 10:12:03 -07:00
Fangrui Song
0d911077f4
Set Diag::concerned if any of its Notes is concerned
2019-05-12 09:03:58 -07:00
Fangrui Song
3a364c868b
Set RetainRemappedFileBuffers to true
...
Reported by David Welch in #350 .
This fixes double-free of llvm::MemoryBuffer when parsing fails.
2019-03-29 07:48:58 -07:00
Fangrui Song
4808ccb32c
Add missing headers to adapt llvmorg-11-init-5501-g213aea4c583 and llvmorg-11-init-5528-gd7c5037e6b9
2020-03-12 08:35:59 -07:00
Fangrui Song
a858567686
Adapt rL364464: clang::FrontendAction::Execute returns llvm::Error instead of bool
2019-06-27 01:10:04 -07:00
Fangrui Song
f1cbf8d550
Adapt clang rC357037: removal of setVirtualFileSystem
2019-03-26 18:42:48 -07:00
Leszek Swirski
633d8936a8
Use DiagnosticRelatedInformation if client supports publishDiagnostics.relatedInformation ( #276 )
...
In clients that support DiagnosticRelatedInformation, display
clang notes as these nested diagnostics rather than appending
them to the parent diagnostic's message. Behaviour for clients
that don't support related information should be unchanged.
2019-02-21 02:23:21 +01:00
Fangrui Song
c6d56519e3
Drop support for clang 6
2019-01-21 10:44:44 +08:00
Fangrui Song
c592f95be0
completion: if preamble size changes, rebuild it
...
Fix #190
If a new header is added, the preamble size changes. Language clients may cache completion results, thus we rebuild preamble to avoid inaccurate results.
2019-01-13 18:33:18 +08:00
Fangrui Song
dd74d03cfc
Adjust FrontendOpts.Inputs[0] for inferred files
2019-11-09 20:09:13 -08:00
Fangrui Song
52e0289245
Handle file deletion and register workspace/didChangeWatchedFiles
...
* In the "initialized" callback, send client/registerCapability with DidChangeWatchedFilesRegistrationOptions
* In workspace/didChangeWatchedFiles callback, call pipeline::Index
* In pipeline::Index, add a `deleted` status
2019-11-09 20:09:13 -08:00
Fangrui Song
3edda5cf76
Make -v=1 work and log cflags for SemaManager session and Indexer
2019-11-09 20:09:13 -08:00
Fangrui Song
20e0beb9f3
Rendezvous after receiving "exit" notification ( #159 )
2019-11-09 20:09:13 -08:00
Fangrui Song
9ad2450009
Refactor WorkingFiles and CompletionManager
...
* WorkingFiles::files : vector -> unordered_map
* Add timestamp to WorkingFile
* Rename "comp-preload" thread to "preamble"
* Rename CompletionManager to SemaManager as it is used by "diag" "comp" "preamble"
* Rename clang_complete.* to sema_manager.*
* Merge SemaManager::{preloads,sessions}
* Add initialization option session.maxNum
* In DiagnosticMain, if an included file was modified, cancel the DiagTask and create a PreambleTask instead. The task sets `from_diag` so as to trigger immediate DiagTask after the preamble is built.
2019-11-09 20:09:13 -08:00