class FixItOptions
Declaration
class FixItOptions { /* full declaration omitted */ };
Declared at: clang/include/clang/Rewrite/Frontend/FixItRewriter.h:33
Member Variables
- public bool InPlace = false
- True if files should be updated in place. RewriteFilename is only called if this is false.
- public bool FixWhatYouCan = false
- Whether to abort fixing a file when not all errors could be fixed.
- public bool FixOnlyWarnings = false
- Whether to only fix warnings and not errors.
- public bool Silent = false
- 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.
Method Overview
- public FixItOptions()
- public virtual std::string RewriteFilename(const std::string & Filename, int & fd)
- public virtual ~FixItOptions()
Methods
¶FixItOptions()
FixItOptions()
Declared at: clang/include/clang/Rewrite/Frontend/FixItRewriter.h:35
¶virtual std::string RewriteFilename(
const std::string& Filename,
int& fd)
virtual std::string RewriteFilename(
const std::string& Filename,
int& fd)
Description
This file is about to be rewritten. Return the name of the file that is okay to write to.
Declared at: clang/include/clang/Rewrite/Frontend/FixItRewriter.h:44
Parameters
- const std::string& Filename
- int& 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.
¶virtual ~FixItOptions()
virtual ~FixItOptions()
Declared at: clang/include/clang/Rewrite/Frontend/FixItRewriter.h:36