From 2616d6edc72fca221cd0b28119795d8601e292f8 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Wed, 15 Feb 2017 04:11:33 +0330 Subject: added a macro function to check for the validity of sourcelocations we get --- mutator_aux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mutator_aux.h') 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; /*********************************************************************************************************************/ -- cgit v1.2.3