Dmitri Gribenko | a5ef44f | 2012-07-11 21:38:39 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -verify %s |
| 2 | // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s |
| 3 | // RUN: cp %s %t |
| 4 | // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -fixit %t |
| 5 | // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -Werror %t |
| 6 | |
| 7 | struct a { |
| 8 | int x; //< comment // expected-warning {{not a Doxygen trailing comment}} |
| 9 | int y; /*< comment */ // expected-warning {{not a Doxygen trailing comment}} |
| 10 | }; |
| 11 | |
| 12 | // CHECK: fix-it:"{{.*}}":{8:10-8:13}:"///<" |
| 13 | // CHECK: fix-it:"{{.*}}":{9:10-9:13}:"/**<" |
| 14 | |