forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All lines surrounded by 'extern "C" {' and '}' were not parsed. Instead of skpping the lines, this change ignores 'extern "C" {' itself. As the result, the lines are parsed expectedly. The last '}' may be just ignored. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
6 changed files
with
117 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--sort=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
__NSCompoundPredicate_h_GNUSTEP_BASE_INCLUDE input.h /^#define __NSCompoundPredicate_h_GNUSTEP_BASE_INCLUDE$/;" M | ||
NSCompoundPredicateType input.h /^typedef NSUInteger NSCompoundPredicateType;$/;" t | ||
NSCompoundPredicate input.h /^@interface NSCompoundPredicate : NSPredicate$/;" i | ||
_subs input.h /^ NSArray *_subs;$/;" E interface:NSCompoundPredicate | ||
andPredicateWithSubpredicates: input.h /^+ (NSPredicate *) andPredicateWithSubpredicates: (NSArray *)list;$/;" c interface:NSCompoundPredicate | ||
notPredicateWithSubpredicate: input.h /^+ (NSPredicate *) notPredicateWithSubpredicate: (NSPredicate *)predicate;$/;" c interface:NSCompoundPredicate | ||
orPredicateWithSubpredicates: input.h /^+ (NSPredicate *) orPredicateWithSubpredicates: (NSArray *)list;$/;" c interface:NSCompoundPredicate | ||
subpredicates input.h /^- (NSArray *) subpredicates;$/;" m interface:NSCompoundPredicate | ||
foo input-0.m /^extern int foo (void)$/;" f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// -*- mode: objc -*- | ||
|
||
/* Verify code handling | ||
* | ||
* extern "C" { ... | ||
* | ||
* doesn't break the other area of objectivec parser. | ||
*/ | ||
|
||
extern int foo (void) | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* Interface for NSCompoundPredicate for GNUStep | ||
Copyright (C) 2005 Free Software Foundation, Inc. | ||
Written by: Dr. H. Nikolaus Schaller | ||
Created: 2005 | ||
This file is part of the GNUstep Base Library. | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Library General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free | ||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
Boston, MA 02111 USA. | ||
*/ | ||
|
||
#ifndef __NSCompoundPredicate_h_GNUSTEP_BASE_INCLUDE | ||
#define __NSCompoundPredicate_h_GNUSTEP_BASE_INCLUDE | ||
#import <GNUstepBase/GSVersionMacros.h> | ||
|
||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST) | ||
|
||
#import <Foundation/NSPredicate.h> | ||
|
||
#if defined(__cplusplus) | ||
extern "C" { | ||
#endif | ||
|
||
typedef NSUInteger NSCompoundPredicateType; | ||
|
||
@interface NSCompoundPredicate : NSPredicate | ||
{ | ||
#if GS_EXPOSE(NSCompoundPredicate) | ||
NSArray *_subs; | ||
#endif | ||
} | ||
|
||
+ (NSPredicate *) andPredicateWithSubpredicates: (NSArray *)list; | ||
+ (NSPredicate *) notPredicateWithSubpredicate: (NSPredicate *)predicate; | ||
+ (NSPredicate *) orPredicateWithSubpredicates: (NSArray *)list; | ||
|
||
- (NSArray *) subpredicates; | ||
|
||
@end | ||
|
||
#if defined(__cplusplus) | ||
} | ||
#endif | ||
|
||
#endif /* 100400 */ | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters