![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtQmlCompiler More...
#include <qqmlsa.h>
Public Member Functions | |
| FixSuggestion (const QString &fixDescription, const QQmlSA::SourceLocation &location, const QString &replacement=QString()) | |
| Creates a FixSuggestion object. | |
| FixSuggestion (const FixSuggestion &) | |
| Creates a copy of other. | |
| FixSuggestion (FixSuggestion &&) noexcept | |
| Move-constructs a FixSuggestion instance. | |
| FixSuggestion & | operator= (const FixSuggestion &) |
| Assigns other to this FixSuggestion instance. | |
| FixSuggestion & | operator= (FixSuggestion &&) noexcept |
| Move-assigns other to this FixSuggestion instance. | |
| ~FixSuggestion () | |
| Destorys the FixSuggestion instance. | |
| QString | fixDescription () const |
| Returns the description of the fix. | |
| QQmlSA::SourceLocation | location () const |
| Returns the location where the fix would be applied. | |
| QString | replacement () const |
| Returns the fix that will replace the problematic source code. | |
| void | setFileName (const QString &) |
| Sets fileName as the name of the file where this fix suggestion applies. | |
| QString | fileName () const |
| Returns the name of the file where this fix suggestion applies. | |
| void | setHint (const QString &) |
| Sets hint as the hint for this fix suggestion. | |
| QString | hint () const |
| Returns the hint for this fix suggestion. | |
| void | setAutoApplicable (bool autoApplicable=true) |
| Sets autoApplicable to determine whether this suggested fix can be applied automatically. | |
| bool | isAutoApplicable () const |
| Returns whether this suggested fix can be applied automatically. | |
Friends | |
| bool | operator== (const FixSuggestion &lhs, const FixSuggestion &rhs) |
Returns true if lhs and rhs are equal, and false otherwise. | |
| bool | operator!= (const FixSuggestion &lhs, const FixSuggestion &rhs) |
Returns true if lhs and rhs are not equal, and false otherwise. | |
\inmodule QtQmlCompiler
Represents a suggested fix for an issue in the source code.
| QQmlSA::FixSuggestion::FixSuggestion | ( | const QString & | fixDescription, |
| const QQmlSA::SourceLocation & | location, | ||
| const QString & | replacement = QString() ) |
Creates a FixSuggestion object.
Definition at line 2103 of file qqmlsa.cpp.
| QQmlSA::FixSuggestion::FixSuggestion | ( | const FixSuggestion & | other | ) |
Creates a copy of other.
Definition at line 2112 of file qqmlsa.cpp.
|
noexcept |
Move-constructs a FixSuggestion instance.
Definition at line 2120 of file qqmlsa.cpp.
|
default |
Destorys the FixSuggestion instance.
| QString QQmlSA::FixSuggestion::fileName | ( | ) | const |
Returns the name of the file where this fix suggestion applies.
Definition at line 2190 of file qqmlsa.cpp.
| QString QQmlSA::FixSuggestion::fixDescription | ( | ) | const |
Returns the description of the fix.
Definition at line 2157 of file qqmlsa.cpp.
| QString QQmlSA::FixSuggestion::hint | ( | ) | const |
Returns the hint for this fix suggestion.
Definition at line 2206 of file qqmlsa.cpp.
| bool QQmlSA::FixSuggestion::isAutoApplicable | ( | ) | const |
Returns whether this suggested fix can be applied automatically.
Definition at line 2223 of file qqmlsa.cpp.
| QQmlSA::SourceLocation QQmlSA::FixSuggestion::location | ( | ) | const |
Returns the location where the fix would be applied.
Definition at line 2165 of file qqmlsa.cpp.
| FixSuggestion & QQmlSA::FixSuggestion::operator= | ( | const FixSuggestion & | other | ) |
Assigns other to this FixSuggestion instance.
Definition at line 2128 of file qqmlsa.cpp.
|
noexcept |
Move-assigns other to this FixSuggestion instance.
Definition at line 2140 of file qqmlsa.cpp.
| QString QQmlSA::FixSuggestion::replacement | ( | ) | const |
Returns the fix that will replace the problematic source code.
Definition at line 2174 of file qqmlsa.cpp.
| void QQmlSA::FixSuggestion::setAutoApplicable | ( | bool | autoApplicable = true | ) |
Sets autoApplicable to determine whether this suggested fix can be applied automatically.
Definition at line 2215 of file qqmlsa.cpp.
Sets fileName as the name of the file where this fix suggestion applies.
Definition at line 2182 of file qqmlsa.cpp.
Sets hint as the hint for this fix suggestion.
Definition at line 2198 of file qqmlsa.cpp.
|
friend |
|
friend |