summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsJavaParserHelper.cxx
Commit message (Expand)AuthorAgeFilesLines
* Modernize: Prefer .substr in place of .c_str() + intArtur Ryt2019-03-301-8/+5
* clang-tidy: Use emplaceRegina Pfeifer2019-01-171-2/+2
* Reduce allocation of temporary values on heap.Pavel Solodovnikov2018-01-261-2/+3
* Replace empty-string comparisons with checking against `empty()`.Pavel Solodovnikov2017-09-211-1/+1
* Meta: modernize old-fashioned loops to range-based `for`.Pavel Solodovnikov2017-09-121-26/+14
* Merge topic 'cstyle-casts'Daniel Pfeifer2017-08-301-3/+3
|\
| * Replace C-style castsDaniel Pfeifer2017-08-271-3/+3
* | IWYU: Mark cmConfigure.h with pragma: keepDaniel Pfeifer2017-08-261-2/+0
|/
* Use C++11 nullptrDaniel Pfeifer2017-08-241-5/+5
* Use quotes for non-system includesDaniel Pfeifer2017-04-111-2/+2
* clang-tidy: apply readability-redundant-string-init fixesDaniel Pfeifer2016-12-121-2/+2
* Simplify CMake per-source license noticesBrad King2016-09-271-11/+2
* fix a load of include-what-you-use violationsDaniel Pfeifer2016-09-031-0/+7
* use CM_NULLPTRDaniel Pfeifer2016-06-281-5/+5
* cmDependsJavaParserHelper: fix dangling pointerDaniel Pfeifer2016-06-201-23/+16
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-202/+131
* Source: Sort includes the way clang-format wouldBrad King2016-05-031-1/+1
* Replace 'foo.size() == 0' pattern with foo.empty().Stephen Kelly2015-01-181-1/+1
* Replace 'foo.size() > 0' pattern with !foo.empty().Stephen Kelly2015-01-181-4/+4
* Remove c_str calls when using stream APIs.Stephen Kelly2014-03-111-4/+4
* strings: Remove cmStdString referencesBen Boeckel2014-03-081-12/+12
* Use cmsys::[io]fstream instead of cmsys_ios::[io]fstream.Clinton Stimpson2014-01-071-1/+2
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-13/+13
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
* Fix open solaris build issue with concept checking that breaks std vector for...Bill Hoffman2009-09-141-5/+5
* STYLE: fix line lengthKen Martin2006-05-101-26/+26
* ENH: add support for win64 for visual studio 2005 ide and nmake, also fix war...Bill Hoffman2006-03-301-2/+2
* COMP: Fix warning about printf format and given type.Brad King2005-02-031-1/+2
* COMP: Removed default argument from method definition.Brad King2005-01-281-1/+1
* ENH: Initial import of java parserAndy Cedilnik2005-01-281-0/+433
ef hid_t H5E_major_t; typedef hid_t H5E_minor_t; /* Information about an error; element of error stack */ typedef struct H5E_error_t { hid_t cls_id; /*class ID */ hid_t maj_num; /*major error ID */ hid_t min_num; /*minor error number */ const char *func_name; /*function in which error occurred */ const char *file_name; /*file in which error occurred */ unsigned line; /*line in file where error occurs */ const char *desc; /*optional supplied description */ } H5E_error_t; /* When this header is included from a private header, don't make calls to H5open() */ #undef H5OPEN #ifndef _H5private_H #define H5OPEN H5open(), #else /* _H5private_H */ #define H5OPEN #endif /* _H5private_H */ /* HDF5 error class */ #define H5E_ERR_CLS (H5OPEN H5E_ERR_CLS_g) H5_DLLVAR hid_t H5E_ERR_CLS_g; /* Include the automatically generated public header information */ /* (This includes the list of major and minor error codes for the library) */ #include "H5Epubgen.h" /* * One often needs to temporarily disable automatic error reporting when * trying something that's likely or expected to fail. For instance, to * determine if an object exists one can call H5Gget_objinfo() which will fail if * the object doesn't exist. The code to try can be nested between calls to * H5Eget_auto() and H5Eset_auto(), but it's easier just to use this macro * like: * H5E_BEGIN_TRY { * ...stuff here that's likely to fail... * } H5E_END_TRY; * * Warning: don't break, return, or longjmp() from the body of the loop or * the error reporting won't be properly restored! * * These two macros still use the old API functions for backward compatibility * purpose. */ #define H5E_BEGIN_TRY { \ unsigned H5E_saved_is_stack; \ union { \ H5E_auto_stack_t stack_efunc; \ H5E_auto_t efunc; \ } H5E_saved; \ void *H5E_saved_edata; \ \ (void)H5Eauto_is_stack(H5E_DEFAULT, &H5E_saved_is_stack); \ if(H5E_saved_is_stack) { \ (void)H5Eget_auto_stack(H5E_DEFAULT, &H5E_saved.stack_efunc, &H5E_saved_edata); \ (void)H5Eset_auto_stack(H5E_DEFAULT, NULL, NULL); \ } else { \ (void)H5Eget_auto(&H5E_saved.efunc, &H5E_saved_edata); \ (void)H5Eset_auto(NULL, NULL); \ } #define H5E_END_TRY \ if(H5E_saved_is_stack) { \ (void)H5Eset_auto_stack(H5E_DEFAULT, H5E_saved.stack_efunc, H5E_saved_edata); \ } else { \ (void)H5Eset_auto(H5E_saved.efunc, H5E_saved_edata); \ } \ } /* * Public API Convenience Macros for Error reporting - Documented */ /* Use the Standard C __FILE__ & __LINE__ macros instead of typing them in */ #define H5Epush_sim(func,cls,maj,min,str) H5Epush_stack(H5E_DEFAULT,__FILE__,func,__LINE__,cls,maj,min,str) /* * Public API Convenience Macros for Error reporting - Undocumented */ /* Use the Standard C __FILE__ & __LINE__ macros instead of typing them in */ /* And return after pushing error onto stack */ #define H5Epush_ret(func,cls,maj,min,str,ret) { \ H5Epush_stack(H5E_DEFAULT,__FILE__,func,__LINE__,cls,maj,min,str); \ return(ret); \ } /* Use the Standard C __FILE__ & __LINE__ macros instead of typing them in * And goto a label after pushing error onto stack. */ #define H5Epush_goto(func,cls,maj,min,str,label) { \ H5Epush_stack(H5E_DEFAULT,__FILE__,func,__LINE__,cls,maj,min,str); \ goto label; \ } /* Error stack traversal direction */ typedef enum H5E_direction_t { H5E_WALK_UPWARD = 0, /*begin deep, end at API function */ H5E_WALK_DOWNWARD = 1 /*begin at API function, end deep */ } H5E_direction_t; #ifdef __cplusplus extern "C" { #endif /* Error stack traversal callback function pointers */ typedef herr_t (*H5E_walk_t)(unsigned n, const H5E_error_t *err_desc, void *client_data); typedef herr_t (*H5E_auto_t)(void *client_data); typedef herr_t (*H5E_auto_stack_t)(hid_t estack, void *client_data); /* Public API functions */ H5_DLL hid_t H5Eregister_class(const char *cls_name, const char *lib_name, const char *version); H5_DLL herr_t H5Eunregister_class(hid_t class_id); H5_DLL herr_t H5Eclose_msg(hid_t err_id); H5_DLL hid_t H5Ecreate_msg(hid_t cls, H5E_type_t msg_type, const char *msg); H5_DLL hid_t H5Eget_current_stack(void); H5_DLL herr_t H5Eclose_stack(hid_t stack_id); H5_DLL ssize_t H5Eget_class_name(hid_t class_id, char *name, size_t size); H5_DLL ssize_t H5Eget_msg(hid_t msg_id, H5E_type_t *type, char *msg, size_t size); H5_DLL int H5Eget_num(hid_t error_stack_id); H5_DLL herr_t H5Eset_current_stack(hid_t err_stack_id); H5_DLL herr_t H5Epop(hid_t err_stack, size_t count); H5_DLL herr_t H5Eauto_is_stack(hid_t err_stack, unsigned *is_stack); /* These old APIs are kept for backward compatibility. They don't have * the error stack in the parameters. */ H5_DLL herr_t H5Epush(const char *file, const char *func, unsigned line, H5E_major_t maj, H5E_minor_t min, const char *str); H5_DLL herr_t H5Eprint(FILE *stream); H5_DLL herr_t H5Ewalk(H5E_direction_t direction, H5E_walk_t func, void *client_data); H5_DLL herr_t H5Eget_auto(H5E_auto_t *func, void **client_data); H5_DLL herr_t H5Eset_auto(H5E_auto_t func, void *client_data); H5_DLL herr_t H5Eclear(void); H5_DLL const char * H5Eget_major(H5E_major_t maj); H5_DLL const char * H5Eget_minor(H5E_minor_t min); /* New APIs function the same as the old ones above, with the error stack * in the parameters */ H5_DLL herr_t H5Epush_stack(hid_t err_stack, const char *file, const char *func, unsigned line, hid_t cls_id, hid_t maj_id, hid_t min_id, const char *msg, ...); H5_DLL herr_t H5Eprint_stack(hid_t err_stack, FILE *stream); H5_DLL herr_t H5Ewalk_stack(hid_t err_stack, H5E_direction_t direction, H5E_walk_t func, void *client_data); H5_DLL herr_t H5Eget_auto_stack(hid_t estack_id, H5E_auto_stack_t *func, void **client_data); H5_DLL herr_t H5Eset_auto_stack(hid_t estack_id, H5E_auto_stack_t func, void *client_data); H5_DLL herr_t H5Eclear_stack(hid_t err_stack); #ifdef __cplusplus } #endif #endif