|
clang
3.8.0
|
#include <FixItRewriter.h>
Public Member Functions | |
| FixItOptions () | |
| virtual | ~FixItOptions () |
| virtual std::string | RewriteFilename (const std::string &Filename, int &fd)=0 |
| This file is about to be rewritten. More... | |
Public Attributes | |
| bool | InPlace |
| True if files should be updated in place. More... | |
| bool | FixWhatYouCan |
| Whether to abort fixing a file when not all errors could be fixed. More... | |
| bool | FixOnlyWarnings |
| Whether to only fix warnings and not errors. More... | |
| bool | Silent |
| If true, only pass the diagnostic to the actual diagnostic consumer if it is an error or a fixit was applied as part of the diagnostic. More... | |
Definition at line 28 of file FixItRewriter.h.
|
inline |
Definition at line 30 of file FixItRewriter.h.
|
virtual |
Definition at line 203 of file FixItRewriter.cpp.
|
pure virtual |
This file is about to be rewritten.
Return the name of the file that is okay to write to.
| fd | out parameter for file descriptor. After the call it may be set to an open file descriptor for the returned filename, or it will be -1 otherwise. |
Referenced by clang::FixItRewriter::WriteFixedFiles().
| bool clang::FixItOptions::FixOnlyWarnings |
Whether to only fix warnings and not errors.
Definition at line 52 of file FixItRewriter.h.
Referenced by clang::FixItRewriter::HandleDiagnostic().
| bool clang::FixItOptions::FixWhatYouCan |
Whether to abort fixing a file when not all errors could be fixed.
Definition at line 49 of file FixItRewriter.h.
Referenced by clang::FixItRewriter::WriteFixedFiles().
| bool clang::FixItOptions::InPlace |
True if files should be updated in place.
RewriteFilename is only called if this is false.
Definition at line 46 of file FixItRewriter.h.
Referenced by clang::FixItRewriter::WriteFixedFiles().
| bool clang::FixItOptions::Silent |
If true, only pass the diagnostic to the actual diagnostic consumer if it is an error or a fixit was applied as part of the diagnostic.
It basically silences warnings without accompanying fixits.
Definition at line 57 of file FixItRewriter.h.
Referenced by clang::FixItRewriter::HandleDiagnostic().
1.8.6