FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixed Qt config macro declaration by Daschle-Newberry · Pull Request #8796 · cppcheck-opensource/cppcheck · GitHub

Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .cfg  (1) .cpp  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion cfg/qt.cfg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -5520,7 +5520,7 @@
<define name="Q_OVERRIDE(x)" value=""/>
<define name="Q_PLUGIN_METADATA(x)" value=""/>
<define name="Q_ASSERT(condition)" value="assert(condition)"/>
<define name="Q_ASSERT_X(condition, where, what)" value="assert(condition)"/>
<define name="Q_ASSERT_X(condition, where, what)" value="assert(condition); (void)(where); (void)(what)"/>
<define name="QTC_ASSERT_STRINGIFY_HELPER(x)" value="#x"/>
<define name="QTC_ASSERT_STRINGIFY(x)" value="QTC_ASSERT_STRINGIFY_HELPER(x)"/>
<define name="QTC_ASSERT_STRING(cond)" value="::Utils::writeAssertLocation( &quot;\&quot;&quot; cond&quot;\&quot; in file &quot; __FILE__ &quot;, line &quot; QTC_ASSERT_STRINGIFY(__LINE__))"/>
Expand Down
7 changes: 7 additions & 0 deletions test/cfg/qt.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,13 @@ int qdateIsValid()
return qd.month();
}

void qAssertX()
{
const char *where = "test";
const char *what = "assertion failed";
Q_ASSERT_X(false, where, what);
}

struct S_QTimer_connect : QObject { // #13846
S_QTimer_connect() {
// cppcheck-suppress checkLibraryFunction - timeout() is a signal from QTimer
Expand Down
Loading

Back | FazBrowse Home | New Git URL