mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 09:26:06 +00:00

This patch implements parsing ‘#pragma clang __debug’ as a first step for implementing captured statements. Captured statements are a mechanism for doing outlining in the AST. see http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-January/027540.html. Currently returns StmtEmpty Author: Andy Zhang <andy.zhang@intel.com> Differential Revision: http://llvm-reviews.chandlerc.com/D369 llvm-svn: 179614
14 lines
239 B
C
14 lines
239 B
C
// RUN: %clang_cc1 -E %s | FileCheck %s
|
|
|
|
// Test pragma clang __debug captured, for Captured Statements
|
|
|
|
void test1()
|
|
{
|
|
#pragma clang __debug captured
|
|
{
|
|
}
|
|
// CHECK: void test1()
|
|
// CHECK: {
|
|
// CHECK: #pragma clang __debug captured
|
|
}
|