From kdevelop-bugs Thu Sep 30 15:26:00 2010 From: Milian Wolff Date: Thu, 30 Sep 2010 15:26:00 +0000 To: kdevelop-bugs Subject: [Bug 252883] Semantic analysis always reports NULL as not defined, Message-Id: <20100930152600.5C7AA6CED8 () immanuel ! kde ! org> X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=128586044516492 https://bugs.kde.org/show_bug.cgi?id=252883 Milian Wolff changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #1 from Milian Wolff 2010-09-30 17:25:59 --- commit 5375199da87f2374f1638f1720615acf253df5dc Author: Milian Wolff Date: Thu Sep 30 17:24:27 2010 +0200 support NULL macro as alias for 0 BUG: 252883 diff --git a/languages/cpp/setuphelpers.cpp b/languages/cpp/setuphelpers.cpp index 41ccbc0..b35ec83 100644 --- a/languages/cpp/setuphelpers.cpp +++ b/languages/cpp/setuphelpers.cpp @@ -174,6 +174,8 @@ Cpp::ReferenceCountedMacroSet setupStandardMacros() rpp::pp_macro m("__null"); m.setDefinitionText( "0" ); insertMacro( macros, m ); + m.name = IndexedString("NULL"); + insertMacro( macros, m ); } { -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs