aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorDavid Goldman <davg@google.com>2021-07-12 12:29:48 -0400
committerDavid Goldman <davg@google.com>2021-09-23 17:13:30 -0400
commitd75fb1ee794e94a011e88739df84c359c987a65b (patch)
treec4c2b3200d034d4c3c9171d8f2236d38724cf60a /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent5fcde57b73fbc068c51f55a80894a6ef208d4afd (diff)
downloadllvm-d75fb1ee794e94a011e88739df84c359c987a65b.zip
llvm-d75fb1ee794e94a011e88739df84c359c987a65b.tar.gz
llvm-d75fb1ee794e94a011e88739df84c359c987a65b.tar.bz2
[clangd] Support `#pragma mark` in the outline
Xcode uses `#pragma mark -` to draw a divider in the outline view and `#pragma mark Note` to add `Note` in the outline view. For more information, see https://nshipster.com/pragma/. Since the LSP spec doesn't contain dividers for the symbol outline, instead we treat `#pragma mark -` as a group with children - the decls that come after it, implicitly terminating when the symbol's parent ends. The following code: ``` @implementation MyClass - (id)init {} - (int)foo; @end ``` Would give an outline like ``` MyClass > Overrides > init > Public Accessors > foo ``` Differential Revision: https://reviews.llvm.org/D105904
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions