clang API Documentation
#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. Return the name of the file that is okay to write to. | |
Public Attributes | |
| bool | FixWhatYouCan |
| Whether to abort fixing a file when not all errors could be fixed. | |
| bool | FixOnlyWarnings |
| Whether to only fix warnings and not errors. | |
| 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. It basically silences warnings without accompanying fixits. | |
Definition at line 28 of file FixItRewriter.h.
| clang::FixItOptions::FixItOptions | ( | ) | [inline] |
Definition at line 30 of file FixItRewriter.h.
| FixItOptions::~FixItOptions | ( | ) | [virtual] |
Definition at line 196 of file FixItRewriter.cpp.
| virtual std::string clang::FixItOptions::RewriteFilename | ( | const std::string & | Filename, |
| int & | fd | ||
| ) | [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().
Whether to only fix warnings and not errors.
Definition at line 48 of file FixItRewriter.h.
Referenced by clang::FixItRewriter::HandleDiagnostic().
Whether to abort fixing a file when not all errors could be fixed.
Definition at line 45 of file FixItRewriter.h.
Referenced by clang::FixItRewriter::WriteFixedFiles().
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 53 of file FixItRewriter.h.
Referenced by clang::FixItRewriter::HandleDiagnostic().