1*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -verify %s 2*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s 3*67e74705SXin Li // RUN: cp %s %t 4*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -fixit %t 5*67e74705SXin Li // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -Werror %t 6*67e74705SXin Li 7*67e74705SXin Li struct a { 8*67e74705SXin Li int x; //< comment // expected-warning {{not a Doxygen trailing comment}} 9*67e74705SXin Li int y; /*< comment */ // expected-warning {{not a Doxygen trailing comment}} 10*67e74705SXin Li }; 11*67e74705SXin Li 12*67e74705SXin Li // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:10-[[@LINE-4]]:13}:"///<" 13*67e74705SXin Li // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:10-[[@LINE-4]]:13}:"/**<" 14