diff options
| author | bloodstalker <thabogre@gmail.com> | 2017-02-15 00:41:33 +0000 | 
|---|---|---|
| committer | bloodstalker <thabogre@gmail.com> | 2017-02-15 00:41:33 +0000 | 
| commit | 2616d6edc72fca221cd0b28119795d8601e292f8 (patch) | |
| tree | f2bca7bbb0bea892026f0560ef8845c7b429c407 | |
| parent | changed the default build mode to c++1z (diff) | |
| download | mutator-2616d6edc72fca221cd0b28119795d8601e292f8.tar.gz mutator-2616d6edc72fca221cd0b28119795d8601e292f8.zip | |
added a macro function to check for the validity of sourcelocations we get
| -rw-r--r-- | mutator_aux.h | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/mutator_aux.h b/mutator_aux.h index 9b9069f..a2d1c22 100644 --- a/mutator_aux.h +++ b/mutator_aux.h @@ -32,6 +32,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.*  #include "clang/Rewrite/Core/Rewriter.h"  #include "tinyxml2/tinyxml2.h"  /*********************************************************************************************************************/ +/*Mcros and Definitions*/ +#define CheckSLValidity(SL) \ +  if (!SL.isValid()) {return void();} +/*********************************************************************************************************************/  using namespace clang;  using namespace tinyxml2;  /*********************************************************************************************************************/ | 
