mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 17:36:36 +00:00

If there is more than one TypoExpr within the expr being transformed and any but the last TypoExpr seen don't have any viable candidates, the tree transform will be aborted early and the remaining TypoExprs are never seen and hence never diagnosed. This adds a simple RecursiveASTVisitor to find all of the TypoExprs to be diagnosed in the case where typo correction of the entire expr fails (and the result of the tree transform is an ExprError). llvm-svn: 222465
16 lines
511 B
C++
16 lines
511 B
C++
// RUN: not %clang_cc1 -fsyntax-only %s 2> %t
|
|
// RUN: FileCheck %s < %t
|
|
// CHECK: 10 errors
|
|
template<typename _CharT>
|
|
class collate : public locale::facet {
|
|
|
|
protected:
|
|
virtual ~collate() {}
|
|
class wxObject;
|
|
class __attribute__ ((visibility("default"))) wxGDIRefData
|
|
: public wxObjectRefData {};
|
|
class __attribute__ ((visibility("default"))) wxGDIObject : public wxObject { \
|
|
public:
|
|
virtual bool IsOk() const {
|
|
return m_refData && static_cast<wxGDIRefData *>(m_refData)->IsOk();
|