mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-14 18:06:32 +00:00

for preprocessing r300667 added support for editor placeholder to Clang. That commit didn’t take into account that users who use Clang for preprocessing only (-E) will get the "editor placeholder in source file" error when preprocessing their source (PR33394). This commit ensures that Clang doesn't lex editor placeholders when running a preprocessor only action. rdar://32718000 Differential Revision: https://reviews.llvm.org/D34256 llvm-svn: 305576
5 lines
125 B
C
5 lines
125 B
C
// RUN: %clang_cc1 -E -verify -o - %s | FileCheck %s
|
|
// expected-no-diagnostics
|
|
|
|
<#placeholder#>; // CHECK: <#placeholder#>;
|