[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / clang / test / Sema / warn-documentation-almost-trailing.c
blob3eafb1daef2bb8a9684fc9e435f70999e8f01e1e
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 -Wdocumentation -fixit %t
5 // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -Werror %t
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}}
12 // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:10-[[@LINE-4]]:13}:"///<"
13 // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:10-[[@LINE-4]]:13}:"/**<"