1// RUN: rm -rf %t && mkdir -p %t
2// RUN: clang-doc --output=%t --format=json --executor=standalone %s
3// RUN: FileCheck %s < %t/GlobalNamespace/index.json
4
5static void myFunction() {}
6
7void noExceptFunction() noexcept {}
8
9inline void inlineFunction() {}
10
11extern void externFunction() {}
12
13constexpr void constexprFunction() {}
14
15// CHECK: "Functions": [
16// CHECK-NEXT: {
17// CHECK: "IsStatic": true,
18// COM: FIXME: Emit ExceptionSpecificationType
19// CHECK-NOT: "ExceptionSpecifcation" : "noexcept",
20// COM: FIXME: Emit inline
21// CHECK-NOT: "IsInline": true,
22// COM: FIXME: Emit extern
23// CHECK-NOT: "IsExtern": true,
24// COM: FIXME: Emit constexpr
25// CHECK-NOT: "IsConstexpr": true,
26

source code of clang-tools-extra/test/clang-doc/json/function-specifiers.cpp