| 102 | } |
| 103 | |
| 104 | void function() const { |
| 105 | constexpr char xmldata[] = "<?xml version=\"1.0\"?>\n" |
| 106 | "<def>\n" |
| 107 | " <function name=\"foo\">\n" |
| 108 | " <noreturn>false</noreturn>\n" |
| 109 | " </function>\n" |
| 110 | "</def>"; |
| 111 | |
| 112 | const char code[] = "foo();"; |
| 113 | SimpleTokenList tokenList(code); |
| 114 | tokenList.front()->next()->astOperand1(tokenList.front()); |
| 115 | |
| 116 | Library library; |
| 117 | ASSERT(LibraryHelper::loadxmldata(library, xmldata, sizeof(xmldata))); |
| 118 | ASSERT_EQUALS(library.functions().size(), 1U); |
| 119 | ASSERT(library.functions().at("foo").argumentChecks.empty()); |
| 120 | ASSERT(library.isnotnoreturn(tokenList.front())); |
| 121 | } |
| 122 | |
| 123 | void function_match_scope() const { |
| 124 | constexpr char xmldata[] = "<?xml version=\"1.0\"?>\n" |
no test coverage detected