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