mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 22:08:57 -04:00

Add an ability to specify custom documentation block comment commands via a new class CommentOptions. The intention is that this class will hold future customizations for comment parsing, including defining documentation comments with specific numbers of parameters, etc. CommentOptions instance is a member of LangOptions. CommentOptions is controlled by a new command-line parameter -fcomment-block-commands=Foo,Bar,Baz. llvm-svn: 175892
9 lines
333 B
C
9 lines
333 B
C
// Check that we pass -fcomment-block-commands to frontend.
|
|
//
|
|
// RUN: %clang -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-NO-ARG
|
|
// RUN: %clang -c %s -fcomment-block-commands=Foo -### 2>&1 | FileCheck %s --check-prefix=CHECK-ARG
|
|
//
|
|
// CHECK-ARG: -fcomment-block-commands=Foo
|
|
//
|
|
// CHECK-NO-ARG-NOT: -fcomment-block-commands=
|