Changeset 76451 in vbox for trunk/src/bldprogs/scm.h
- Timestamp:
- Dec 25, 2018 1:40:08 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 127752
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bldprogs/scm.h
r70834 r76451 149 149 150 150 int ScmEnumerateComments(PSCMSTREAM pIn, SCMCOMMENTSTYLE enmCommentStyle, PFNSCMCOMMENTENUMERATOR pfnCallback, void *pvUser); 151 152 153 /** 154 * Include directive type. 155 */ 156 typedef enum SCMINCLUDEDIR 157 { 158 kScmIncludeDir_Invalid = 0, /**< Constomary invalid enum value. */ 159 kScmIncludeDir_Quoted, /**< \#include \"filename.h\" */ 160 kScmIncludeDir_Bracketed, /**< \#include \<filename.h\> */ 161 kScmIncludeDir_Macro, /**< \#include MACRO_H */ 162 kScmIncludeDir_End /**< End of valid enum values. */ 163 } SCMINCLUDEDIR; 164 165 SCMINCLUDEDIR ScmMaybeParseCIncludeLine(PSCMRWSTATE pState, const char *pchLine, size_t cchLine, 166 const char **ppchFilename, size_t *pcchFilename); 167 168 /** 169 * Checks if the given character is a valid C identifier lead character. 170 * 171 * @returns true / false. 172 * @param ch The character to inspect. 173 * @sa vbcppIsCIdentifierLeadChar 174 */ 175 DECLINLINE(bool) ScmIsCIdentifierLeadChar(char ch) 176 { 177 return RT_C_IS_ALPHA(ch) 178 || ch == '_'; 179 } 180 181 182 /** 183 * Checks if the given character is a valid C identifier character. 184 * 185 * @returns true / false. 186 * @param ch The character to inspect. 187 * @sa vbcppIsCIdentifierChar 188 */ 189 DECLINLINE(bool) scmIsCIdentifierChar(char ch) 190 { 191 return RT_C_IS_ALNUM(ch) 192 || ch == '_'; 193 } 194 151 195 152 196 /** @} */ … … 215 259 FNSCMREWRITER rewrite_FixFlowerBoxMarkers; 216 260 FNSCMREWRITER rewrite_Fix_C_and_CPP_Todos; 261 FNSCMREWRITER rewrite_Fix_Err_H; 217 262 FNSCMREWRITER rewrite_C_and_CPP; 218 263 … … 288 333 /** Whether to fix C/C++ todos. */ 289 334 bool fFixTodos; 335 /** Whether to fix C/C++ err.h/errcore.h usage. */ 336 bool fFixErrH; 290 337 291 338 /** Update the copyright year. */
Note:
See TracChangeset
for help on using the changeset viewer.