| 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:"{{.*}}":{[[@LINE-4]]:10-[[@LINE-4]]:13}:"///<" |
| 13 | // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:10-[[@LINE-4]]:13}:"/**<" |
| 14 | |