Changeset View
Changeset View
Standalone View
Standalone View
support/xhpast/xhpast.cpp
| #include "ast.hpp" | #include "ast.hpp" | ||||
Lint: toomanyconfigs: Too many #ifdef configurations - cppcheck only checks 12 of 43 configurations. Use --force to… | |||||
| #include <iostream> | #include <iostream> | ||||
| #include <sstream> | #include <sstream> | ||||
| #include <fstream> | #include <fstream> | ||||
| using namespace std; | using namespace std; | ||||
| int xhpastparse(void*, xhpast::Node **); | int xhpastparse(void*, xhpast::Node **); | ||||
| int xhpast_process(std::string &in); | int xhpast_process(std::string &in); | ||||
| void print_node(xhpast::Node *node); | void print_node(xhpast::Node *node); | ||||
| int main(int argc, char* argv[]) { | int main(int argc, char* argv[]) { | ||||
| if (argc != 1) { | if (argc != 1) { | ||||
| // Coupling: modify also src/parser/xhpast/bin/PhutilXHPASTBinary.php | // Coupling: modify also src/parser/xhpast/bin/PhutilXHPASTBinary.php | ||||
| cout << "7.1.2\n"; | cout << "7.1.3\n"; | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| ifstream inputFile; | ifstream inputFile; | ||||
| istream *inputStream; | istream *inputStream; | ||||
| inputStream = &cin; | inputStream = &cin; | ||||
| std::stringbuf sb; | std::stringbuf sb; | ||||
| ▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines | |||||
Too many #ifdef configurations - cppcheck only checks 12 of 43 configurations. Use --force to check all configurations.