[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git] / clang / test / CodeCompletion / deuglify.cpp
blobc5f801736376c543ed5fb804bf591b1d3dd482fa
1 // Fake standard library with uglified names.
2 // Parameters (including template params) get ugliness stripped.
3 namespace std {
5 template <typename _Tp>
6 class __vector_base {};
8 template <typename _Tp>
9 class vector : private __vector_base<_Tp> {
10 public:
11 _Tp &at(unsigned __index) const;
12 int __stays_ugly();
15 } // namespace std
17 int x = std::vector<int>{}.at(42);
18 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:17:14 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
19 // CHECK-CC1: COMPLETION: __vector_base : __vector_base<<#typename Tp#>>
20 // CHECK-CC1: COMPLETION: vector : vector<<#typename Tp#>>
21 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:17:28 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
22 // CHECK-CC2: COMPLETION: __stays_ugly : [#int#]__stays_ugly()
23 // CHECK-CC2: COMPLETION: at : [#int &#]at(<#unsigned int index#>)[# const#]
24 // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:17:31 %s -o - | FileCheck -check-prefix=CHECK-CC3 %s
25 // CHECK-CC3: OVERLOAD: [#int &#]at(<#unsigned int index#>)