This only applies if the type has a name. (we could potentially do something crazy with decltype in C++11 to qualify members of unnamed types but that seems excessive) It might be nice to also suggest a fixit for "&this->i", "&foo->i", and "&foo.i" but those expressions produce 'bound' member functions that have a different AST representation & make error recovery a little trickier. Left as future work. llvm-svn: 165763
14 lines
284 B
C++
14 lines
284 B
C++
// RUN: %clang_cc1 -fdiagnostics-parseable-fixits -x c++ -std=c++11 %s 2>&1 | FileCheck %s
|
|
|
|
// test that the diagnostics produced by this code do not include fixit hints
|
|
|
|
// CHECK-NOT: fix-it:
|
|
|
|
template<template<typename> +> void func();
|
|
|
|
struct {
|
|
void i() {
|
|
(void)&i;
|
|
}
|
|
} x;
|