llvm-capstone/clang/test/CodeCompletion/using-namespace.cpp
Douglas Gregor 5bf52697b0 Tweak the code-completion results ranking and formation, so that
members found in base classes have the same ranking as members found
in derived classes. However, we will introduce an informative note for
members found in base classes, showing (as a nested-name-specifier)
the qualification to name the base class, to make it clear which
members are from bases.
 

llvm-svn: 82586
2009-09-22 23:15:58 +00:00

22 lines
434 B
C++

namespace N4 {
namespace N3 { }
}
class N3;
namespace N2 {
namespace I1 { }
namespace I4 = I1;
namespace I5 { }
namespace I1 { }
void foo() {
using namespace
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:14:20 %s -o - | FileCheck -check-prefix=CC1 %s &&
// CHECK-CC1: I1 : 2
// CHECK-CC1: I4 : 2
// CHECK-CC1: I5 : 2
// CHECK-CC1: N2 : 4
// CHECK-NEXT-CC1: N4 : 4
// RUN: true