You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
600 B
14 lines
600 B
// RUN: %clang_cc1 -fsyntax-only -Wdocumentation -verify %s
|
|
// RUN: %clang_cc1 -fsyntax-only -Wdocumentation -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
|
|
// RUN: cp %s %t
|
|
// RUN: %clang_cc1 -fsyntax-only -Wdocumentation -fixit %t
|
|
// RUN: %clang_cc1 -fsyntax-only -Wdocumentation -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:"{{.*}}":{[[@LINE-4]]:10-[[@LINE-4]]:13}:"///<"
|
|
// CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:10-[[@LINE-4]]:13}:"/**<"
|