llvm-project/clang/test/Sema/doxygen-comments.c

15 lines
537 B
C

// RUN: %clang_cc1 -fsyntax-only -Wdoxygen -verify %s
// RUN: %clang_cc1 -fsyntax-only -Wdoxygen -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
// RUN: cp %s %t
// RUN: %clang_cc1 -fsyntax-only -Wdoxygen -fixit %t
// RUN: %clang_cc1 -fsyntax-only -Wdoxygen -Werror %t
struct a {
int x; //< comment // expected-warning {{not a Doxygen trailing comment}}
int y; /*< comment */ // expected-warning {{not a Doxygen trailing comment}}
};
// CHECK: fix-it:"{{.*}}":{8:10-8:13}:"///<"
// CHECK: fix-it:"{{.*}}":{9:10-9:13}:"/**<"