warn-documentation-almost-trailing.c 600 B

12345678910111213
  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. struct a {
  7. int x; //< comment // expected-warning {{not a Doxygen trailing comment}}
  8. int y; /*< comment */ // expected-warning {{not a Doxygen trailing comment}}
  9. };
  10. // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:10-[[@LINE-4]]:13}:"///<"
  11. // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:10-[[@LINE-4]]:13}:"/**<"