Lines Matching refs:pIdx
32 DiagnosticEngine::ArgumentKind getArgKind(unsigned int pIdx) const { in getArgKind() argument
33 assert(pIdx < getNumArgs() && "Argument index is out of range!"); in getArgKind()
34 return (DiagnosticEngine::ArgumentKind)m_Engine.state().ArgumentKinds[pIdx]; in getArgKind()
37 const std::string& getArgStdStr(unsigned int pIdx) const { in getArgStdStr() argument
38 assert(getArgKind(pIdx) == DiagnosticEngine::ak_std_string && in getArgStdStr()
40 return m_Engine.state().ArgumentStrs[pIdx]; in getArgStdStr()
43 const char* getArgCStr(unsigned int pIdx) const { in getArgCStr() argument
44 assert(getArgKind(pIdx) == DiagnosticEngine::ak_c_string && in getArgCStr()
46 return reinterpret_cast<const char*>(m_Engine.state().ArgumentVals[pIdx]); in getArgCStr()
49 int getArgSInt(unsigned int pIdx) const { in getArgSInt() argument
50 assert(getArgKind(pIdx) == DiagnosticEngine::ak_sint && in getArgSInt()
52 return static_cast<int>(m_Engine.state().ArgumentVals[pIdx]); in getArgSInt()
55 unsigned int getArgUInt(unsigned int pIdx) const { in getArgUInt() argument
56 assert(getArgKind(pIdx) == DiagnosticEngine::ak_uint && in getArgUInt()
58 return (unsigned int)m_Engine.state().ArgumentVals[pIdx]; in getArgUInt()
61 unsigned long long getArgULongLong(unsigned pIdx) const { in getArgULongLong() argument
62 assert(getArgKind(pIdx) == DiagnosticEngine::ak_ulonglong && in getArgULongLong()
64 return (unsigned long long)m_Engine.state().ArgumentVals[pIdx]; in getArgULongLong()
67 bool getArgBool(unsigned int pIdx) const { in getArgBool() argument
68 assert(getArgKind(pIdx) == DiagnosticEngine::ak_bool && in getArgBool()
70 return static_cast<bool>(m_Engine.state().ArgumentVals[pIdx]); in getArgBool()
73 intptr_t getRawVals(unsigned int pIdx) const { in getRawVals() argument
74 assert(getArgKind(pIdx) != DiagnosticEngine::ak_std_string && in getRawVals()
76 return m_Engine.state().ArgumentVals[pIdx]; in getRawVals()