rpc_spec icon indicating copy to clipboard operation
rpc_spec copied to clipboard

RPC Parser - Reserved C++ keywords are missing

Open joeljfischer opened this issue 5 years ago • 0 comments

C++ keywords are not being reserved by the RPC spec parser making incorrect generated code appear in at least one case for iOS code:

/**
 * @param template - template
 * @return A SDLTemplateConfiguration object
 */
- (instancetype)initWithTemplate:(NSString *)template;

/**
 * @param template - template
 * @param dayColorScheme - dayColorScheme
 * @param nightColorScheme - nightColorScheme
 * @return A SDLTemplateConfiguration object
 */
- (instancetype)initWithTemplate:(NSString *)template dayColorScheme:(nullable SDLTemplateColorScheme *)dayColorScheme nightColorScheme:(nullable SDLTemplateColorScheme *)nightColorScheme;

Here template is reserved for C++ and therefore this code will not compile for Obj-C++ projects.

joeljfischer avatar Oct 30 '20 15:10 joeljfischer