aboutsummaryrefslogtreecommitdiffstats
path: root/src/QtUtils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add QtUtils::isQtContainer() overloading taking a CXXRecordDeclSergio Martins2018-01-141-2/+7
| | | | Convert a std::string to StringRef, as a drive-by
* StringRef++Sergio Martins2018-01-111-3/+3
|
* Less using of std::string. Use StringRef insteadSergio Martins2018-01-081-13/+13
|
* Rename the *Utils:: namespace to clazy::Sergio Martins2017-12-181-25/+25
| | | | No reason to have a separate namespace
* Rename clazy_std namespace to clazySergio Martins2017-12-181-6/+6
|
* const-signal-or-slot: Don't print an error when connecting to lambdaSergio Martins2017-11-151-3/+1
| | | | | | returning nullptr is enough BUG: 386940
* Merge branch '1.2'Sergio Martins2017-10-181-1/+1
|\
| * Add missing \n in debug messageSergio Martins2017-10-151-1/+1
| |
* | Inform which is the second argument => number of argumentMontel Laurent2017-10-161-1/+1
| | | | | | | | | | | | | | | | + add space after this one. It avoids line as : error, invalid argIndex 3 3/compile/kde5/framework/kde/pim/kmail-account-wizard/src/cryptopage.cpp:226:9: warning: Pass 'this' as the 3rd connect parameter [-Wclazy-connect-3arg-lambda] => we have "3" without space so we can't copy path directly and we didn"t know when was the second "3"
* | Reduce some duplicated codeSergio Martins2017-10-121-2/+2
| |
* | Merge branch '1.2' into masterSergio Martins2017-10-111-0/+6
|\|
| * old-style-connect: Add a fixit for one more caseOlivier Goffart (Woboq GmbH)2017-10-111-0/+6
| | | | | | | | | | Fixes fixit when the argument types have different const reference, for example "const QString &" vs "QString", which are compatible.
* | Merge branch '1.2' into masterSergio Martins2017-09-211-0/+25
|\|
| * Refactor into QtUtils::recordHasCtorWithParamSergio Martins2017-09-211-0/+25
| | | | | | | | So code can be shared
* | Replace a map with an unordered_mapSergio Martins2017-08-061-2/+2
|/
* Merge two std::map, they had mostly the same contentsSergio Martins2017-08-061-2/+26
| | | | | | | | - Moved to QtUtils, so it can be shared with more checks - Removed the duplicate one from foreach, which was even wrong since it included QVarLengthArray, but that container isn't implicitly shared kfunk: ^^
* Refactor function so it can be reusedSergio Martins2017-06-041-13/+0
|
* Fix QtUtils::isQtContainer()Sergio Martins2017-06-031-2/+6
| | | | Was comparing "QList<T>" to "QList", for example. So always returning false.
* Merge branch '1.1' into masterSergio Martins2017-05-201-2/+2
|\
| * QtUtils: QVarLength is not COWSergio Martins2017-05-201-2/+2
| |
* | Remove CheckBase::ci() and make m_ci privateSergio Martins2017-04-231-10/+0
| | | | | | | | Using the context is enough in all checks, no need to expose the compiler instance.
* | Use m_context instead of m_ci.getASTContext()Sergio Martins2017-04-231-5/+0
|/ | | | Less verbose and trying to decouple from CompilerInstance.
* reserve-candidates: Also support std::vector, not only Qt containersSergio Martins2017-02-251-1/+1
|
* connect-non-signal: Don't fail to detect signals wrapped with a static-castSergio Martins2017-02-121-0/+2
| | | | BUG: 376137
* Move all source files into a src/ folderSergio Martins2017-02-051-0/+323
Top-level folder was starting to get messy