Package: uncrustify
Version: 0.33-1
Severity: minor
Tags: patch

While doing C++ development we found that signals labels aren't
supported by uncrustify and then we've added it. Here goes the patch
to include support for it.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-686 (SMP w/1 CPU core)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages uncrustify depends on:
ii  libc6                         2.6-4      GNU C Library: Shared libraries
ii  libgcc1                       1:4.2.1-0  GCC support library
ii  libstdc++6                    4.2.1-0    The GNU Standard C++ Library v3

uncrustify recommends no packages.

-- no debconf information
>From fab80a1c1d8a4f7011f773b5f7d5feacb842f0ab Mon Sep 17 00:00:00 2001
From: Otavio Salvador <[EMAIL PROTECTED]>
Date: Fri, 27 Jul 2007 16:45:40 -0300
Subject: [PATCH] Add support to signals label

The signals label is used on QT and should be handled igually as
private/public/protected. To avoid any side effect, it has been
restricted to C++ language.
---
 src/keywords.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/keywords.cpp b/src/keywords.cpp
index 03f890a..955958d 100644
--- a/src/keywords.cpp
+++ b/src/keywords.cpp
@@ -178,6 +178,7 @@ static const chunk_tag_t keywords[] =
    { "sealed",           CT_QUALIFIER,   LANG_CS                               
              },
    { "set",              CT_GETSET,      LANG_CS                               
              },
    { "short",            CT_TYPE,        LANG_ALLC                             
              },
+   { "signals",          CT_PRIVATE,     LANG_CPP                              
              },
    { "signed",           CT_TYPE,        LANG_C | LANG_CPP                     
              },
    { "sizeof",           CT_SIZEOF,      LANG_C | LANG_CPP | LANG_CS | 
LANG_PAWN             }, // PAWN
    { "sleep",            CT_FUNCTION,    LANG_C | LANG_CPP | LANG_CS | 
LANG_PAWN             }, // PAWN
-- 
1.5.3.GIT

Reply via email to