| 65 | } |
| 66 | |
| 67 | bool isHeaderFile(std::string path) { |
| 68 | |
| 69 | try { |
| 70 | std::regex path_regex("\\.h$"); |
| 71 | std::sregex_iterator it(path.begin(), path.end(), path_regex); |
| 72 | std::sregex_iterator end; |
| 73 | if (it != end) { |
| 74 | return true; |
| 75 | } |
| 76 | return false; |
| 77 | } catch (std::regex_error &E) { |
| 78 | return false; |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | // TOBE : handle anonymous namespace |
| 83 | std::string getClassNameWithNamespace(std::string FullMethodName) { |