llvm.org GIT mirror llvm / 6a03769
Change RHS-style decltype to LHS-style decltype<declval()>. Seems some compilers don't like the RHS-style decltype specifier. This should fix the buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228484 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 4 years ago
5 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
4444 }
4545 };
4646
47 }; // namespace llvm
47 } // namespace llvm
4848
4949 #endif // LLVM_DEBUGINFO_PDB_PDBFUNCTION_H
2828 }
2929 };
3030
31 }; // namespace llvm
31 } // namespace llvm
3232
3333 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCOMPILANDENV_H
3232 }
3333 };
3434
35 }; // namespace llvm
35 } // namespace llvm
3636
3737 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLCUSTOM_H
5050 }
5151 };
5252
53 }; // namespace llvm
53 } // namespace llvm
5454
5555 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLDATA_H
66 //
77 //===----------------------------------------------------------------------===//
88
9 #include
910 #include
1011
1112 #include "llvm/DebugInfo/PDB/IPDBEnumChildren.h"
5960 namespace {
6061
6162 #define MOCK_SYMBOL_ACCESSOR(Func) \
62 auto Func() const->decltype(((IPDBRawSymbol *)nullptr)->Func()) override { \
63 decltype(std::declval().Func()) Func() const override { \
6364 typedef decltype(IPDBRawSymbol::Func()) ReturnType; \
6465 return ReturnType(); \
6566 }