summaryrefslogtreecommitdiffstats
path: root/lldb/unittests/Process/gdb-remote/GDBRemoteTestUtils.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-04-19 08:58:56 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-04-19 08:58:56 +0000
commit1be800c511c87ab4abe89aeb1ac6eab2e38ea198 (patch)
treedef251afa3b83b1657a6b62dde91dfc7cbaa07d8 /lldb/unittests/Process/gdb-remote/GDBRemoteTestUtils.cpp
parent746b3c336f3c0878977d8209564c20f0dbc67308 (diff)
downloadbcm5719-llvm-1be800c511c87ab4abe89aeb1ac6eab2e38ea198.tar.gz
bcm5719-llvm-1be800c511c87ab4abe89aeb1ac6eab2e38ea198.zip
Add support for editor placeholders to Clang
This commit teaches Clang to recognize editor placeholders that are produced when an IDE like Xcode inserts a code-completion result that includes a placeholder. Now when the lexer sees a placeholder token, it emits an 'editor placeholder in source file' error and creates an identifier token that represents the placeholder. The parser/sema can now recognize the placeholders and can suppress the diagnostics related to the placeholders. This ensures that live issues in an IDE like Xcode won't get spurious diagnostics related to placeholders. This commit also adds a new compiler option named '-fallow-editor-placeholders' that silences the 'editor placeholder in source file' error. This is useful for an IDE like Xcode as we don't want to display those errors in live issues. rdar://31581400 Differential Revision: https://reviews.llvm.org/D32081 llvm-svn: 300667
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteTestUtils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud