view clang/test/Analysis/analyzer-display-progress.cpp @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900
parents 1d019706d866
children 5f17cb93ff66
line wrap: on
line source

// RUN: %clang_analyze_cc1 -analyzer-display-progress %s 2>&1 | FileCheck %s

void f() {};
void g() {};
void h() {}

struct SomeStruct {
  void f() {}
};

struct SomeOtherStruct {
  void f() {}
};

namespace ns {
  struct SomeStruct {
    void f(int) {}
    void f(float, ::SomeStruct) {}
    void f(float, SomeStruct) {}
  };
}

// CHECK: analyzer-display-progress.cpp f()
// CHECK: analyzer-display-progress.cpp g()
// CHECK: analyzer-display-progress.cpp h()
// CHECK: analyzer-display-progress.cpp SomeStruct::f()
// CHECK: analyzer-display-progress.cpp SomeOtherStruct::f()
// CHECK: analyzer-display-progress.cpp ns::SomeStruct::f(int)
// CHECK: analyzer-display-progress.cpp ns::SomeStruct::f(float, ::SomeStruct)
// CHECK: analyzer-display-progress.cpp ns::SomeStruct::f(float, struct ns::SomeStruct)