DDT-IDE / DDT

DDT is an Eclipse-based IDE for the D programming language:
http://ddt-ide.github.io/
101 stars 16 forks source link

Parsing problem with: alias typename = align(16) ubyte[512]; #154

Open carblue opened 7 years ago

carblue commented 7 years ago

Hello, first off, thanks a lot for Your awesome DDT eclipse plug-in, it's my daily use tool!

Environment: Linux x86_64, latest eclipse neon (Eclipse IDE for C/C++ Developers 4.6.2.20161208-0625, CDT+DDT1.0.3.v201611011228+some more plugins, no Exception in error log). This isn't a big problem, I currently just disregard the following 3 errors referring to this D code line: alias crypto_aead_aes256gcm_state = align(16) ubyte[512]; (The C source line: typedef CRYPTO_ALIGN(16) unsigned char crypto_aead_aes256gcm_state[512];)

Description Resource Path Location Type Syntax error on token "]", expected IDENTIFIER after. crypto_aead_aes256gcm.d /libsodium/deimos/deimos/sodium $HOME/workspace/libsodium/deimos/deimos/sodium/crypto_aead_aes256gcm.d D Problem Syntax error on token "=", expected SEMICOLON after. crypto_aead_aes256gcm.d /libsodium/deimos/deimos/sodium $HOME/workspace/libsodium/deimos/deimos/sodium/crypto_aead_aes256gcm.d D Problem Unexpected token after "=", while trying to parse Reference. crypto_aead_aes256gcm.d /libsodium/deimos/deimos/sodium $HOME/workspace/libsodium/deimos/deimos/sodium/crypto_aead_aes256gcm.d D Problem

bruno-medeiros commented 7 years ago

Okay, reproduced it, seems like DDT cannot parse:

alias crypto_aead_aes256gcm_state = align(16) ubyte[512];