aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/test/clang-doc/json/function-specifiers.cpp
blob: b194e3371bf768613cdf34c69508cc32228998dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// RUN: rm -rf %t && mkdir -p %t
// RUN: clang-doc --output=%t --format=json --executor=standalone %s
// RUN: FileCheck %s < %t/index.json

static void myFunction() {}

void noExceptFunction() noexcept {}

inline void inlineFunction() {}

extern void externFunction() {}

constexpr void constexprFunction() {}

// CHECK:          "Functions": [
// CHECK-NEXT:       {
// CHECK:              "IsStatic": true,
// COM:                FIXME: Emit ExceptionSpecificationType
// CHECK-NOT:          "ExceptionSpecifcation" : "noexcept",
// COM:                FIXME: Emit inline
// CHECK-NOT:          "IsInline": true,
// COM:                FIXME: Emit extern
// CHECK-NOT:          "IsExtern": true,
// COM:                FIXME: Emit constexpr
// CHECK-NOT:          "IsConstexpr": true,