@@ -178,7 +178,7 @@ bool isTemporary(bool cpp, const Token* tok, const Library* library, bool unknow
178178const Token* previousBeforeAstLeftmostLeaf (const Token* tok);
179179Token* previousBeforeAstLeftmostLeaf (Token* tok);
180180
181- const Token * nextAfterAstRightmostLeaf (const Token * tok);
181+ CPPCHECKLIB const Token * nextAfterAstRightmostLeaf (const Token * tok);
182182Token* nextAfterAstRightmostLeaf (Token* tok);
183183
184184Token* astParentSkipParens (Token* tok);
@@ -240,7 +240,7 @@ SmallVector<ReferenceToken> followAllReferences(const Token* tok,
240240 int depth = 20 );
241241const Token* followReferences (const Token* tok, ErrorPath* errors = nullptr );
242242
243- bool isSameExpression (bool cpp, bool macro, const Token *tok1, const Token *tok2, const Library& library, bool pure, bool followVar, ErrorPath* errors=nullptr );
243+ CPPCHECKLIB bool isSameExpression (bool cpp, bool macro, const Token *tok1, const Token *tok2, const Library& library, bool pure, bool followVar, ErrorPath* errors=nullptr );
244244
245245bool isEqualKnownValue (const Token * const tok1, const Token * const tok2);
246246
@@ -249,7 +249,7 @@ bool isStructuredBindingVariable(const Variable* var);
249249/* *
250250 * Is token used a boolean, that is to say cast to a bool, or used as a condition in a if/while/for
251251 */
252- bool isUsedAsBool (const Token * const tok);
252+ CPPCHECKLIB bool isUsedAsBool (const Token * const tok);
253253
254254/* *
255255 * Are two conditions opposite
@@ -275,7 +275,7 @@ bool isUniqueExpression(const Token* tok);
275275bool isEscapeFunction (const Token* ftok, const Library* library);
276276
277277/* * Is scope a return scope (scope will unconditionally return) */
278- bool isReturnScope (const Token* const endToken,
278+ CPPCHECKLIB bool isReturnScope (const Token* const endToken,
279279 const Library* library = nullptr ,
280280 const Token** unknownFunc = nullptr ,
281281 bool functionScope = false );
@@ -310,10 +310,10 @@ bool isVariableChangedByFunctionCall(const Token *tok, int indirect, nonneg int
310310 * @param settings program settings
311311 * @param inconclusive pointer to output variable which indicates that the answer of the question is inconclusive
312312 */
313- bool isVariableChangedByFunctionCall (const Token *tok, int indirect, const Settings *settings, bool *inconclusive);
313+ CPPCHECKLIB bool isVariableChangedByFunctionCall (const Token *tok, int indirect, const Settings *settings, bool *inconclusive);
314314
315315/* * Is variable changed in block of code? */
316- bool isVariableChanged (const Token *start, const Token *end, const nonneg int exprid, bool globalvar, const Settings *settings, bool cpp, int depth = 20 );
316+ CPPCHECKLIB bool isVariableChanged (const Token *start, const Token *end, const nonneg int exprid, bool globalvar, const Settings *settings, bool cpp, int depth = 20 );
317317bool isVariableChanged (const Token *start, const Token *end, int indirect, const nonneg int exprid, bool globalvar, const Settings *settings, bool cpp, int depth = 20 );
318318
319319bool isVariableChanged (const Token *tok, int indirect, const Settings *settings, bool cpp, int depth = 20 );
@@ -378,14 +378,14 @@ int getArgumentPos(const Variable* var, const Function* f);
378378 */
379379bool isIteratorPair (std::vector<const Token*> args);
380380
381- const Token *findLambdaStartToken (const Token *last);
381+ CPPCHECKLIB const Token *findLambdaStartToken (const Token *last);
382382
383383/* *
384384 * find lambda function end token
385385 * \param first The [ token
386386 * \return nullptr or the }
387387 */
388- const Token *findLambdaEndToken (const Token *first);
388+ CPPCHECKLIB const Token *findLambdaEndToken (const Token *first);
389389Token* findLambdaEndToken (Token* first);
390390
391391bool isLikelyStream (bool cpp, const Token *stream);
@@ -416,7 +416,7 @@ const Token* findAllocFuncCallToken(const Token *expr, const Library &library);
416416
417417bool isScopeBracket (const Token* tok);
418418
419- bool isNullOperand (const Token *expr);
419+ CPPCHECKLIB bool isNullOperand (const Token *expr);
420420
421421bool isGlobalData (const Token *expr, bool cpp);
422422
0 commit comments