[compiler-rt] r228893 - [Sanitizer] Add "final" specifier to FlagHandlerBase::Parse overrides. NFC.
Alexey Samsonov
vonosmas at gmail.com
Wed Feb 11 16:36:39 PST 2015
Author: samsonov
Date: Wed Feb 11 18:36:39 2015
New Revision: 228893
URL: http://llvm.org/viewvc/llvm-project?rev=228893&view=rev
Log:
[Sanitizer] Add "final" specifier to FlagHandlerBase::Parse overrides. NFC.
Modified:
compiler-rt/trunk/lib/msan/msan.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_flag_parser.h
compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.cc
Modified: compiler-rt/trunk/lib/msan/msan.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan.cc?rev=228893&r1=228892&r2=228893&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/msan.cc (original)
+++ compiler-rt/trunk/lib/msan/msan.cc Wed Feb 11 18:36:39 2015
@@ -111,7 +111,7 @@ class FlagHandlerKeepGoing : public Flag
public:
explicit FlagHandlerKeepGoing(bool *halt_on_error)
: halt_on_error_(halt_on_error) {}
- bool Parse(const char *value) {
+ bool Parse(const char *value) final {
bool tmp;
FlagHandler<bool> h(&tmp);
if (!h.Parse(value)) return false;
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_flag_parser.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_flag_parser.h?rev=228893&r1=228892&r2=228893&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_flag_parser.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_flag_parser.h Wed Feb 11 18:36:39 2015
@@ -31,7 +31,7 @@ class FlagHandler : public FlagHandlerBa
public:
explicit FlagHandler(T *t) : t_(t) {}
- bool Parse(const char *value);
+ bool Parse(const char *value) final;
};
template <>
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.cc?rev=228893&r1=228892&r2=228893&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_flags.cc Wed Feb 11 18:36:39 2015
@@ -51,7 +51,7 @@ class FlagHandlerInclude : public FlagHa
public:
explicit FlagHandlerInclude(FlagParser *parser) : parser_(parser) {}
- bool Parse(const char *value) {
+ bool Parse(const char *value) final {
char *data;
uptr data_mapped_size;
int err;
More information about the llvm-commits
mailing list