Lex: add a callback for `#pragma mark`
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 2 Jul 2021 19:43:01 +0000 (19:43 +0000)
committerSaleem Abdulrasool <abdulras@google.com>
Fri, 2 Jul 2021 22:44:01 +0000 (15:44 -0700)
commit24f4c3ebef63c7d2553132d7d9d75ea19338bcb7
tree698682717a78600b8549227b8d5a0c0f1e074fcf
parenta5c3f10b7527e1aa020d5d05703bb816a3e936fb
Lex: add a callback for `#pragma mark`

Allow a preprocessor observer to be notified of mark pragmas.  Although
this does not impact code generation in any way, it is useful for other
clients, such as clangd, to be able to identify any marked regions.

Reviewed By: dgoldman

Differential Revision: https://reviews.llvm.org/D105368
clang/include/clang/Lex/PPCallbacks.h
clang/include/clang/Lex/Preprocessor.h
clang/lib/Lex/Pragma.cpp
clang/unittests/Lex/PPCallbacksTest.cpp